5 lines
74 B
TypeScript

export type ID = number | string;
export interface WithId {
id: ID;
}