diff --git a/docs/typescript.md b/docs/typescript.md index 94cbc522380..e9059cc5185 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -1557,8 +1557,8 @@ const a = (t: T) => t; const b = (t: T) => t; const c = (t: T) => t; const d = a("a"); // const d: 'a' -const e = a(1); // const d: 1 -const f = a(true); // const d: true +const e = b(1); // const d: 1 +const f = c(true); // const d: true // 这里t的类型用了一个展开运算 const g =