I am attempting to utilize the keyof keyword in TypeScript, but I am encountering an issue where it is not being found. I am currently using TypeScript version 3.5.2 with Angular version 7.2.2. Thank you in advance.
export class Functions {
static ListObjectProperties(): string[] {
let array = keyof Foo;
return array;
}
}
Upon execution, I receive an error stating "Cannot find name 'keyof'".