Skip to content

Instantly share code, notes, and snippets.

@gbishop
Created July 16, 2017 19:35
Show Gist options
  • Save gbishop/6aa2c898d1b63e0cc17a6dbab7e0500c to your computer and use it in GitHub Desktop.
Save gbishop/6aa2c898d1b63e0cc17a6dbab7e0500c to your computer and use it in GitHub Desktop.
typescript errors on CSSProperties
rewrite (master *%)$ tsc
src/NavFrame.tsx(53,65): error TS2345: Argument of type '{ width: string; fontSize: string; } | { width: string; height: string; fontSize: string; alignSe...' is not assignable to parameter of type 'CSSProperties'.
Type '{ width: string; height: string; fontSize: string; alignSelf: string; }' is not assignable to type 'CSSProperties'.
Types of property 'alignSelf' are incompatible.
Type 'string' is not assignable to type '"auto" | "center" | "initial" | "inherit" | "unset" | "flex-start" | "flex-end" | "stretch" | "ba...'.
src/NavFrame.tsx(57,65): error TS2345: Argument of type '{ width: string; fontSize: string; } | { width: string; height: string; fontSize: string; alignSe...' is not assignable to parameter of type 'CSSProperties'.
Type '{ width: string; height: string; fontSize: string; alignSelf: string; }' is not assignable to type 'CSSProperties'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment