I\'ve a lot of tables in Lovefield and their respective Interfaces for what columns they have.
Example:
export interface IMyTable {
id: number;
t
The following requires you to list the keys on your own, but at least TypeScript will enforce IUserProfile and IUserProfileKeys have the exact same keys (Required
export interface IUserProfile {
id: string;
name: string;
};
type KeysEnum = { [P in keyof Required]: true };
const IUserProfileKeys: KeysEnum = {
id: true,
name: true,
};