register-url-windows
Version:
Register a URL protocol for Windows with support for Chrome and Edge
23 lines (22 loc) • 654 B
TypeScript
export declare type RegistrationRequest = {
path: string;
name?: string;
protocol: string;
origins?: string[];
register: boolean;
output?: string;
};
export declare type RegistrationResponse = {
error: false | string;
chrome: boolean;
edge: boolean;
protocol: boolean;
exception?: Error;
};
export declare const BINARY_VERSION: string;
export declare const PACKAGE_NAMES: {
win64: string;
"win64-uac": string;
};
export declare function installBin(requireUAC?: boolean): Promise<unknown>;
export declare function register(request: RegistrationRequest, binPath?: string): Promise<RegistrationResponse>;