@blockscout/ui-toolkit
Version:
A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects
9 lines (8 loc) • 430 B
TypeScript
export type UrlScheme = 'http' | 'https' | 'ws' | 'wss';
export declare const URL_SCHEME_REGEXP: RegExp;
export interface UrlValidatorParams {
loose?: boolean;
}
export declare function urlValidator({ loose }?: UrlValidatorParams): (value: string | undefined) => true | "Incorrect URL";
export declare const DOMAIN_REGEXP: RegExp;
export declare function domainValidator(value: string | undefined): true | "Incorrect domain";