Skip to content

Commit bbe2b05

Browse files
geromegrignond3lm
authored andcommitted
feat: add best practices
1 parent 70bbf3c commit bbe2b05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/typescript/avoid-using-any.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ Set the compiler `–noImplicitAny` flag. With this flag enabled the compiler wi
4444
When working with 3rd party libraries that are written in vanilla JavaScript, we most likely don't have type information available. Luckily there is an initiative to create type definitions for those libraries. If it exists, you can find it by installing the type package via `yarn add --dev @types/${library-name}`.
4545

4646
If this does not exist yet, you can create one yourself. Contributions are always welcome and appreciated.
47+
48+
# Best Practices
49+
50+
Using types is not just about enhancing your coding experience.
51+
Starting a feature by defining the types of the data you are going to work with can help you to better understand it and might even lead to a better design.

0 commit comments

Comments
 (0)