Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
28
node_modules/default-browser/index.d.ts
generated
vendored
Normal file
28
node_modules/default-browser/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
export type Browser = {
|
||||
/**
|
||||
Human-readadable name of the browser.
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
Unique ID for the browser on the current platform:
|
||||
- On macOS, it's the ID in LaunchServices.
|
||||
- On Linux, it's the desktop file ID (from `xdg-mime`).
|
||||
- On Windows, it's an invented ID as Windows doesn't have IDs.
|
||||
*/
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
Get the default browser for the current platform.
|
||||
|
||||
@returns A promise for the browser.
|
||||
|
||||
```
|
||||
import defaultBrowser from 'default-browser';
|
||||
|
||||
console.log(await defaultBrowser());
|
||||
//=> {name: 'Safari', id: 'com.apple.Safari'}
|
||||
```
|
||||
*/
|
||||
export default function defaultBrowser(): Promise<Browser>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue