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
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
fix(TS): use csstype for standardized CSS typings (#411)
* Use csstype for standardized CSS typings
* Don't expect errors re. invalid values for 'display'
* Make CSSProperties include SvgProperties, since it was before
* Simplify
* Remove more test expectations based on assumption that 'display' is a closed union of literals
Copy file name to clipboardExpand all lines: src/__tests__/__snapshots__/typescript.js.snap
-23
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,7 @@ test/should-fail.test.tsx(100,24): error TS2551: Property 'colors' does not exis
38
38
test/should-fail.test.tsx(111,3): error TS2344: Type 'PropsWithoutTheme' does not satisfy the constraint '{theme: any; }'.
39
39
Property 'theme' is missing in type 'PropsWithoutTheme'.
40
40
test/should-fail.test.tsx(119,3): error TS2345: Argument of type 'StatelessComponent<object>' is not assignable to parameter of type '\\"tspan\\"'.
41
-
test/should-fail.test.tsx(134,3): error TS2345: Argument of type '(props: {theme: any; }& ExampleComponentProps & object) => {display: \\"none\\"| \\"hidden\\"; }' is not assignable to parameter of type 'StyleArgument<CSSProperties, {theme: any; }& ExampleComponentProps & object>'.
42
-
Type '(props: {theme: any; }& ExampleComponentProps & object) => {display: \\"none\\"| \\"hidden\\"; }' is not assignable to type '(string | CSSProperties | StyleFunction<CSSProperties, {theme: any; }& ExampleComponentProps & ...'.
43
-
Property 'push' is missing in type '(props: {theme: any; }& ExampleComponentProps & object) => {display: \\"none\\"| \\"hidden\\"; }'.
44
41
test/should-fail.test.tsx(135,20): error TS2551: Property 'visibles' does not exist on type '{theme: any; }& ExampleComponentProps & object'. Did you mean 'visible'?
45
-
test/should-fail.test.tsx(140,3): error TS2345: Argument of type '(props: {visible: boolean; }& object) => {display: \\"none\\"| \\"hidden\\"; }' is not assignable to parameter of type 'StyleArgument<CSSProperties, {visible: boolean; }& object>'.
46
-
Type '(props: {visible: boolean; }& object) => {display: \\"none\\"| \\"hidden\\"; }' is not assignable to type '(string | CSSProperties | StyleFunction<CSSProperties, {visible: boolean; }& object>)[]'.
47
-
Property 'push' is missing in type '(props: {visible: boolean; }& object) => {display: \\"none\\"| \\"hidden\\"; }'.
48
42
test/should-fail.test.tsx(150,29): error TS2322: Type '{visible: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<ExampleComponentProps&object&ExtraGl...'.
0 commit comments