UNPKG

403 BTypeScriptView Raw
1export interface Options {
2 matchPath?: RegExp | string;
3 requireAbsolute?: boolean;
4 requireSSL?: boolean;
5 whitelist?: string[];
6 subdomains?: string[];
7}
8export declare function isSafe(redirectUrl: string, { whitelist, subdomains, matchPath, requireAbsolute, requireSSL }?: Options): boolean;
9export declare function makeSafe(url: string, fallback: string, options?: Options): string;