You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceCustomElements{'component-one': {foo?: string;},'component-two': {bar?: string;}}interfaceOptions<TextendskeyofCustomElements>{props: CustomElements[T];}functioncreate<TextendskeyofCustomElements>(name: T,options: Options<T>){return{ name, options };}create('component-one',{props: {/* trigger intellisense here */}});constopts: Options<'component-one'>={props: {/* and here */}}
The type of props in the create call is correctly narrowed down to CustomElements['component-one'] by the type system, however Intellisense suggests the props of all fields of CustomElements:
This does not happen when creating an object of that type:
Does this issue occur when all extensions are disabled?: Yes