You-Don-t-Know-TS icon indicating copy to clipboard operation
You-Don-t-Know-TS copied to clipboard

🔥🔥🔥 这是一个专注研究Typescript的网站,🎖🎖🎖在这里你可以全面深入学习Typescript相关知识,通过动画方式讲解TS,还有很多常见问题解答。你还可以挑战相应的题目,快来学习吧。

Results 21 You-Don-t-Know-TS issues
Sort by recently updated
recently updated
newest added

```ts // 你的答案 ```

answer

```ts /* _____________ 你的代码 _____________ */ type MyAwaited = T extends Promise ? MyAwaited : T extends { then: (p: (arg: infer K) => any) => any } ? K...

```ts type MyReadonly2 = Omit & Readonly; //你的答案 ```

answer

```ts //你的答案 type MyOmit = { [P in keyof T as P extends K ? never : P]: T[P] }; ```

answer

```ts //你的答案 type MyOmit = { [P in keyof T as P extends K ? never : P]: T[P] }; ```

answer

```ts //你的答案 type MyReturnType = T extends (...args: any[]) => infer R ? R : T; ```

answer

```ts //你的答案 type Unshift = [U, ...T] ```

answer

```ts //你的答案 type Unshift = [U, ...T] ```

answer

```ts //你的答案 type Unshift = [U, ...T] ```

answer