UNPKG

@chassisjs/hermes

Version:

Production-Ready TypeScript Outbox Pattern

9 lines (8 loc) 250 B
export declare const __FLAVOUR_TYPE__: unique symbol; export type WithFlavour<T extends string> = { readonly __flavour?: T; }; export type WithoutFlavour<T> = Omit<T, '__flavour'>; export type Flavour<K, T> = K & { readonly __flavour?: T; };