4 ms·
Another one: const cast: <A, B> (a: A) => B = function <B> (): B { return arguments[0] } const n: string = cast(1)
by kerneloops 11mo ago
Another one:
const cast: <A, B> (a: A) => B = function <B> (): B {
return arguments[0]
}
const n: string = cast(1)