-
Notifications
You must be signed in to change notification settings - Fork 374
Open
Labels
SupportTracks issues or requests related to troubleshooting, answering questions, and user assistance.Tracks issues or requests related to troubleshooting, answering questions, and user assistance.
Description
- I'm submitting a ...
- Bug reportFeature requestSupport requestOtherTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
- What is the current behavior and expected behavior?
export default {
types: {
VCRequested: {
xxx: "xxx",
assertion: "Assertion",
},
Assertion: {
xxxx: "xxx"
}
}
}
As shown in the above code, Assertion
is my custom type, but there is a CorePrimitiveAssertion
type within metadata that is identical to Assertion
. I want to directly replace it with CorePrimitiveAssertion
, but when generating types, I get an error:
build/interfaces/vc/types.ts:266:25 - error TS2304: Cannot find name 'CorePrimitiveAssertion'.
266 readonly assertion: CorePrimitiveAssertion;
~~~~~~~~~~~~~~~~~~~~~~
It seems that CorePrimitiveAssertion
is not automatically imported into the generated types.If I manually import the following code in this file, it all works:
import type { CorePrimitivesAssertion } from '@polkadot/types/lookup';
All other types work fine. I just want to replace an existing type in metadata within a custom type. Is this achievable?
- Please tell us about your environment:
- Version:
"@polkadot/api": "^10.9.1"
-
Environment:
- Node.jsBrowserOther (limited support for other environments)To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
-
Language:
- JavaScriptTypeScript (include tsc --version)OtherTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
AtelyPham
Metadata
Metadata
Assignees
Labels
SupportTracks issues or requests related to troubleshooting, answering questions, and user assistance.Tracks issues or requests related to troubleshooting, answering questions, and user assistance.
Type
Projects
Status
Support
Milestone
Relationships
Development
Select code repository
Activity