index.d.ts 388 B

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