Skip to content

Instantly share code, notes, and snippets.

@lloydjatkinson
Created June 21, 2019 12:52
Show Gist options
  • Save lloydjatkinson/d1a3701568b3c041eed97d8f3f230556 to your computer and use it in GitHub Desktop.
Save lloydjatkinson/d1a3701568b3c041eed97d8f3f230556 to your computer and use it in GitHub Desktop.
typescript.......
var closeFn: CloseSlideinFn
All destructured elements are unused.ts(6198)
Argument of type '({ state, closeFn }: PropsWithChildren<{ closeFn?: CloseSlideinFn; state: TemplateDesignerStoreState; }>) => boolean' is not assignable to parameter of type 'Element | FunctionComponent<{ closeFn?: CloseSlideinFn; state: TemplateDesignerStoreState; }>'.
Type '({ state, closeFn }: PropsWithChildren<{ closeFn?: CloseSlideinFn; state: TemplateDesignerStoreState; }>) => boolean' is not assignable to type 'FunctionComponent<{ closeFn?: CloseSlideinFn; state: TemplateDesignerStoreState; }>'.
Type 'boolean' is not assignable to type 'ReactElement<any, string | ((props: any) => ReactElement<any, string | ... | (new (props: any) => Component<any, any, any>)>) | (new (props: any) => Component<any, any, any>)>'.ts(2345)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment