7 lines
131 B
TypeScript
7 lines
131 B
TypeScript
|
function recursive() {
|
||
|
let x = <T>(subkey: T) => recursive();
|
||
|
return x as typeof x & { p };
|
||
|
}
|
||
|
|
||
|
let result = recursive()(1)
|