graphql-extra-scalars
Version:
Collection of extra GraphQL scalar types like Email, URL, Password and more
10 lines (9 loc) • 502 B
TypeScript
declare const lengthValidator: (name: string, value: string, min: number, max?: number | undefined) => void;
declare const alphabetValidator: (name: string, value: string, alphabet: string | string[]) => void;
export interface ComplexityOptions {
alphaNumeric?: boolean;
mixedCase?: boolean;
specialChars?: boolean;
}
declare const complexityValidator: (name: string, value: string, options?: ComplexityOptions) => void;
export { alphabetValidator, complexityValidator, lengthValidator, };