Is it possible to use type/interface args as function a parameter ?
If not, is it because of typescript compiler ?
I have a type A
type A = {
name: string;
value: number;
}
And I want something like
const f = (keyof A) => {
console.log(name)
}
will be transpilled to
const f = (name: string, value: string) => {
console.log(name)
}