re: @cshooks/usetrie, A React Hook for Typeahead/Autocomplete VIEW POST

TOP OF THREAD FULL DISCUSSION
re: OK, just glanced at the code quickly, so just a few comments about improving the TypeScript code. ๐Ÿ˜‰ interface Children { [key: string]: ...
 

๐Ÿ˜ฎ...
Those are great tips, Nick ๐Ÿ‘Š

Regarding the public keyword, I was confused coming from C#, in which access modifiers are private by default ๐Ÿ˜… (now I know it's public).

And Words does seem unnecessary as Word[] shows the intention (of word being an array type) better ๐Ÿ˜‚.

It seems like I need to get used to built-in types from those tips.

Thank you for providing me a way to improve the code-base, Nick.

No problem. Glad to see you're having fun in TypeScript land. ๐ŸŽก

Thank you for the warm welcome.
It's been fun & need to unlearn what I know first ๐Ÿ˜‰

code of conduct - report abuse