UNPKG

@decaf-ts/core

Version:

Core persistence module for the decaf framework

15 lines (14 loc) 425 B
export interface Generator<OUT extends string | number = string> { generate(prev?: OUT): OUT; } export declare class UUID implements Generator { private static _instance; generate(prev?: string): string; static get instance(): UUID; } export declare class Serial implements Generator { private static _instance; private count; generate(prev?: string): string; static get instance(): Serial; }