stencil-quantum
Version:
Experience the quantum realm of stencil.
10 lines (9 loc) • 427 B
TypeScript
export declare function qt<T>(opts?: QuantumType<T>): QuantumType<T>;
export declare function qa<P extends any[], R>(opts?: QuantumAction<P, R>): QuantumAction<P, R>;
export declare type QuantumSchema = Record<string, QuantumType<any>>;
export declare type QuantumAction<P extends any[], R> = QuantumType<(...params: P) => Promise<R>>;
export interface QuantumType<T> {
default?: T;
mutable?: boolean;
debug?: boolean;
}