DeathlyHallows
DeathlyHallows
```ts // 你的答案 declare function PromiseAll(values: readonly [...T]): Promise ```
```ts // 你的答案 type ReplaceAll = From extends '' ? S : S extends `${infer L}${From}${infer R}` ? `${L}${To}${ReplaceAll}` : S ```
```ts // 你的答案 type DeepReadonly = { readonly [P in keyof T]: keyof T[P] extends never ? T[P] : DeepReadonly } ```
```ts // 你的答案 type MyReadonly2 = { [P in keyof T as P extends Exclude ? P : never]:T[P] } & { readonly [ P in keyof T as P...
```ts // 你的答案 type MyReturnType any> = T extends (...args:any) => infer R ? R : any ```