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
None of the DOM types exposed by /types/dom.d.ts are using the Type Literals feature - and it would work great I think.
Example: this is the current declaration for the "type" attribute on the "input" interface: type?: string;
A more accurate type definition would be: type?: 'text' | 'button' | 'submit'; // other literals are omitted for brevity
this will allow intellisense to suggest possible values for type.
same if true for other attributes
The text was updated successfully, but these errors were encountered:
None of the DOM types exposed by
/types/dom.d.ts
are using the Type Literals feature - and it would work great I think.Example: this is the current declaration for the "type" attribute on the "input" interface:
type?: string;
A more accurate type definition would be:
type?: 'text' | 'button' | 'submit'; // other literals are omitted for brevity
this will allow intellisense to suggest possible values for
type
.same if true for other attributes
The text was updated successfully, but these errors were encountered: