UNPKG

@itrocks/storage

Version:

Transforms model objects to and from storage systems

6 lines (5 loc) 194 B
export type Entity<T extends object = object> = T & { id: Identifier; }; export type MayEntity<T extends object = object> = T | Entity<T>; export type Identifier = BigInt | Number | String;