Lets say we have this Type:
export type UsersSchema = {
id: number;
firstName: string;
lastName: string;
email: string;
};
Is there a way to make this pseudo-code work:
Object.keys(UsersSchema) which would ideally yield: ['id', 'firstName', 'lastNight', 'email']
Obviously UsersSchema is not a value, so the above does not work...