Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript support problems #18

Open
FelipeAfonso opened this issue Jul 9, 2020 · 2 comments
Open

TypeScript support problems #18

FelipeAfonso opened this issue Jul 9, 2020 · 2 comments

Comments

@FelipeAfonso
Copy link
Contributor

FelipeAfonso commented Jul 9, 2020

Both useClearCache hook and ClearCache component is returning type errors while using latest TypeScript version. This is being caused by defaultProps and useClearCache requiring all its props to be inputed in order to be accepted. The probable solution would be to encapsulate defaultProps and useClearCache with Partial<>

@MrRobz
Copy link

MrRobz commented Jul 11, 2020

+1

1 similar comment
@TianyuHou
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants