NN
Size: a a a
NN
LC
NN
LC
function func(result: any) {
return <T extends unknown>() => result: T;
}
const callFunc = func(whatever)
callFunc<T>() // T returnNN
NN
LC
NN
NN
LC
LC
LC
LC
LC
LC
function func<T>(result: T) {
return () => result
}
const callFunc = func<T>()
callFunc<AnotherType>() // AnotherType returnNN
const getPost = gql<IPostId, IPost>`graphql schema`
await getPost(1) // IPost
LC
c
c