This commit is contained in:
quoije
2023-05-10 21:03:22 -04:00
parent ef1b411c12
commit bd732815c7
1304 changed files with 192970 additions and 5407 deletions
+14
View File
@@ -0,0 +1,14 @@
import { ElementType } from '../types';
declare const OrderedLevels: readonly ["regex", "typo", "disposable", "mx", "smtp"];
export declare type SubOutputFormat = {
valid: boolean;
reason?: string;
};
declare type Level = ElementType<typeof OrderedLevels>;
export declare type OutputFormat = SubOutputFormat & {
validators: {
[K in Level]?: SubOutputFormat;
};
};
export declare const createOutput: (failLevel?: "regex" | "typo" | "disposable" | "mx" | "smtp" | undefined, failReason?: string | undefined) => OutputFormat;
export {};