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: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ In cases where it's not, most of the time a higher-level object will suffice as
309
309
310
310
Consider using object literals if you are finding yourself needing a lot of arguments.
311
311
312
-
To make it obvious what properties the function expects, you can use the [destructuring](https://basarat.gitbooks.io/typescript/docs/destructuring.html) syntax.
312
+
To make it obvious what properties the function expects, you can use the [destructuring](https://basarat.gitbook.io/typescript/future-javascript/destructuring) syntax.
313
313
This has a few advantages:
314
314
315
315
1. When someone looks at the function signature, it's immediately clear what properties are being used.
@@ -2350,7 +2350,7 @@ execution on the current stack, killing the process (in Node), and notifying you
2350
2350
JavaScript as well as TypeScript allow you to `throw` any object. A Promise can also be rejected with any reason object.
2351
2351
It is advisable to use the `throw` syntax with an `Error` type. This is because your error might be caught in higher level code with a `catch` syntax.
2352
2352
It would be very confusing to catch a string message there and would make
2353
-
[debugging more painful](https://basarat.gitbooks.io/typescript/docs/types/exceptions.html#always-use-error).
2353
+
[debugging more painful](https://basarat.gitbook.io/typescript/type-system/exceptions#always-use-error).
2354
2354
For the same reason you should reject promises with `Error` types.
2355
2355
2356
2356
**Bad:**
@@ -2504,7 +2504,7 @@ For TypeScript there is a powerful tool called [TSLint](https://palantir.github.
2504
2504
2505
2505
-[Immutable](https://www.npmjs.com/package/tslint-immutable) - rules to disable mutation in TypeScript
2506
2506
2507
-
Refer also to this great [TypeScript StyleGuide and Coding Conventions](https://basarat.gitbooks.io/typescript/docs/styleguide/styleguide.html) source.
2507
+
Refer also to this great [TypeScript StyleGuide and Coding Conventions](https://basarat.gitbook.io/typescript/styleguide) source.
0 commit comments