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
interfaceCSSProperties{height?: any;color?: any;position?: (|'static'|'absolute'|'fixed'|'relative'|'initial'|'inherit');// .... rest of css properties, some of them with defined acceptable values (like `position`)}exportinterfaceCSSDeclaration<KextendskeyofCSSProperties>{propertyName: K;value: CSSProperties[K];}functionproclaim<TextendskeyofCSSProperties>(decl: CSSDeclaration<T>): CSSDeclaration<T>{returndecl;}
proclaim({propertyName: 'position',// you get completions here, OKvalue: '??'// no completions here, :sadface:});
The type checker will error if you put a value other than one of those defined in CSSProperties, so obviously the type doesn't get lost along the way, but the completions do.
version:2.5.0-dev.20170707 and whatever the playground is running
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Consider the following:
The type checker will error if you put a value other than one of those defined in
CSSProperties
, so obviously the type doesn't get lost along the way, but the completions do.version:
2.5.0-dev.20170707
and whatever the playground is runningThe text was updated successfully, but these errors were encountered: