Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 543 Bytes

sulco.md

File metadata and controls

16 lines (9 loc) · 543 Bytes

Tip # 1

When you return an array, TypeScript infers the type as an Array of included types (see attached code) If you want this value to be inferred as a Tuple instead, add as const to the return statement

as-const

Tip # 2

The latest TypeScript ver 3.7 introduced optional chaining. Which is the best thing since TypeScript.

optional-chaining

⬆️ Back to top