You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/typescript/overview.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,13 @@ The content that follows in this section will be abbreviated notes and code snip
6
6
7
7
## Basics
8
8
9
-
:::note
9
+
:::tip
10
10
11
11
TypeScript transpiles to JavaScript so at runtime all of the extra type checking etc has been removed. Stop looking for the TypeScript equivalent of casting! :D Use something like ZOD or Valibot if you need/want runtime type validation.
12
12
13
13
:::
14
+
15
+
## Managing packages and patching
16
+
17
+
[depcheck](https://www.npmjs.com/package/depcheck) or [npm-check](https://www.npmjs.com/package/npm-check) could be useful (I've not tried either yet) for removing packages which are not used. This isn't the same as npm prune which only removes modules from the `node_modules/` folder but not from package.json.
0 commit comments