Stroller15 / Learn-About-Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In this repo I accumulated my learnings of typescript

image

Concepts which I learn

JSX to TSX
Typing variables
Typing functions
Typing React components
React.FC
Typing props
Extracting type
Benefits of TypeScript
Optional
Benefits of TypeScript (cont.)
'any' type
Type return value of component?
Union type
Extracting type
Typing arrays
Tuple type
React.CSSProperties
Record type
Typing functions
Typing children (React.ReactNode)
React.JSX.Element vs React.ReactNode
Typing useState setter function
Default prop values
Type Alias vs Interface
ComponentPropsWithoutRef
...rest and ...spread
Intersection (&)
Interface extends
Typing event handler functions
Typing useState hook
Typing useRef hook
'as const'
Omit utility
'as' Type Assertion
Generics (EASY!)
Generics in React
index.d.ts vs types.ts
import type
'unknown' type
Zod
ts-reset library
Third-party types ('@types' / DefinitelyTyped)
tsconfig.json
next-env.d.ts

About


Languages

Language:TypeScript 67.2%Language:CSS 24.8%Language:JavaScript 8.0%