Mapped, Conditional ve Utility Tipler
Mapped types, conditional types, infer anahtar kelimesi, distributive conditional types ve TypeScript'in sunduğu utility tiplerin (Partial, Required, Readonly, Pick, Omit, Record, ReturnType, Parameters) ileri kullanımları.
conditional ve mapped örneği
type Awaited<T> = T extends Promise<infer U> ? U : T;
type ReadonlyProps<T> = { readonly [K in keyof T]: T[K] };