TypeScript Version: 2.2.2
Code
interfaceCss{position: 'absolute'|'relative';}functionstyle(rules: Css){}construles={position: 'absolute'};style(rules);style({position: 'absolute'});Expected behavior:
There should be no type issues.
Actual behavior:
style(rules) yields
Argument of type '{ position: string; }' is not assignable to parameter of type 'Css'
Types of property 'position' are incompatible
Using style({position: 'absolute'}) works fine.
TypeScript Version: 2.2.2
Code
Expected behavior:
There should be no type issues.
Actual behavior:
style(rules)yieldsUsing
style({position: 'absolute'})works fine.