UNPKG

@mintlify/validation

Version:

Validates mint.json files

11 lines (10 loc) 457 B
declare const protocols: readonly ["http", "https", "ftp", "ftps", "file", "data", "mailto", "tel", "sms", "ws", "wss"]; type Protocol = (typeof protocols)[number]; export type AbsoluteUrl = `${Protocol}://${string}` | `${Protocol}:${string}`; /** * Check if a URL is absolute * @param url - The URL to check * @returns True if the URL is absolute, false otherwise */ export declare const isAbsoluteUrl: (url: unknown) => url is AbsoluteUrl; export {};