UNPKG

388 BTypeScriptView Raw
1declare type Rule<T> = readonly [string, Config<T>];
2declare type Config<T> = T | Promise<T> | ExectableConfig<T>;
3declare type ExectableConfig<T> = (() => T) | (() => Promise<T>);
4declare type ExecutedRule<T> = readonly [string, T];
5export default execute;
6export declare function execute<T = unknown>(rule?: Rule<T>): Promise<ExecutedRule<T> | null>;
7//# sourceMappingURL=index.d.ts.map
\No newline at end of file