type-dexie
Version:
class oriented schema building tool for dexie.js
13 lines (12 loc) • 394 B
TypeScript
export declare type Key = string | symbol;
export declare type Cls<T = object, U extends any[] = unknown[]> = new (...args: U) => T;
export declare type TypeFn<T = object> = () => Cls<T> | [Cls<T>];
export interface Metadata {
propertyKey: Key;
}
export interface Definition {
keyPath: string;
unique?: boolean;
multiValued?: boolean;
autoIncrement?: boolean;
}