-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
has PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: types
Description
What problem does this feature solve?
Currently IDE extensions cannot extract the types of locally registered components, which makes it difficult to support strong typings of components inside SFC templates, see vuejs/language-tools#80.
What does the proposed API look like?
Expose the component types as generics (if possible):
export declare interface ComponentOptionsBase<LocalComponents extends Record<string, Component>, Props, ...> {
components?: LocalComponents;
...
}
Hawods
Metadata
Metadata
Assignees
Labels
has PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: types