369IT编程
  •  首页
  •  教程
  •  IT编程
  •  国外技术
  •  登录
  1. 标签
  2. javascriptWhy Type 39number39 is
  • javascript - Why Type 'number' is not assignable to type 'T'? - Stack Overflow

    function say3<T>(a: T): T { return a + 1; } let speak = say3<number>(1)I tried the demo,
    javascriptWhy Type 39number39 is not assignable to type 39T39Stack Overflow
    admin17天前
    110
CopyRight © 2022 All Rights Reserved
Processed: 0.016, SQL: 9