Skip to content

Instantly share code, notes, and snippets.

@radix
Created June 10, 2017 17:29
Show Gist options
  • Save radix/28346049acb82b1f7200e6ce98ef518b to your computer and use it in GitHub Desktop.
Save radix/28346049acb82b1f7200e6ce98ef518b to your computer and use it in GitHub Desktop.
ERROR in ./src/typescript/PlayerView.tsx
(22,10): error TS2322: Type '{ children: Element[]; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<TabbedView> & Readonly<{ children?: ReactNode; }> ...'.
Type '{ children: Element[]; }' is not assignable to type 'Readonly<TabbedViewProps>'.
Types of property 'children' are incompatible.
Type 'Element[]' is not assignable to type 'ComponentElement<any, Tab>[]'.
Type 'Element' is not assignable to type 'ComponentElement<any, Tab>'.
Types of property 'type' are incompatible.
Type 'string | ComponentClass<any> | StatelessComponent<any>' is not assignable to type 'ComponentClass<any>'.
Type 'string' is not assignable to type 'ComponentClass<any>'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment