UNPKG

@itrocks/storage

Version:

Transforms model objects to and from storage systems

7 lines (6 loc) 267 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; export declare function isIdentifier(object: any): object is Identifier;