I try to get properties name from generic interface in TypeScript, I have tried to create object and use keys property from Object, but I can do it. Can anyone helps me?
const getPropertiesByType = <T>(): string[] => {
const emptyInstance: T = ??
return Object.keys(emptyInstance)
}