UNPKG

356 BTypeScriptView Raw
1type Rule<T> = readonly [string, Config<T>];
2type Config<T> = T | Promise<T> | ExectableConfig<T>;
3type ExectableConfig<T> = (() => T) | (() => Promise<T>);
4type 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