prateekbh / preact-async-route

Async route component for preact-router
MIT License
138 stars 14 forks source link

fix(props-typescript): adding type check for props to <AsyncRoute /> #25

Closed minaseem closed 6 years ago

prateekbh commented 6 years ago

Can you post a small description of whats happening here? Would be super helpful for TS noobs like me

minaseem commented 6 years ago

[key: string]: any says that all the other props can be of any type. This way we can have as many props passed to <AsyncRoute/>

PS: I have just started studying TS. Let me know if you have better suggestion

prateekbh commented 6 years ago

small request to bump the patch version

minaseem commented 6 years ago

updated patch version