pi/dist/utils/open-browser.d.ts

9 lines
388 B
TypeScript

/**
* Open a URL or file in the platform browser/default handler.
*
* This intentionally never invokes a shell. On Windows, do not use
* `cmd /c start`: cmd.exe re-parses metacharacters (&, |, ^, ...) before
* `start` runs, which would make attacker-controlled URLs injectable.
*/
export declare function openBrowser(target: string): void;
//# sourceMappingURL=open-browser.d.ts.map