執行 ❯
Node 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
type Negate = (value: number) => number; // in this function, the parameter `value` automatically gets assigned the type `number` from the type `Negate` const negateFunction: Negate = (value) => value * -1; console.log(negateFunction(10));
-10