Run ❯
Get your
own Node
server
×
Change Orientation
Change Theme, Dark/Light
Go to 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