mirror of
https://github.com/actions/labeler.git
synced 2025-12-17 15:46:44 +00:00
build
This commit is contained in:
9
node_modules/macos-release/index.d.ts
generated
vendored
9
node_modules/macos-release/index.d.ts
generated
vendored
@@ -2,7 +2,7 @@ declare const macosRelease: {
|
||||
/**
|
||||
Get the name and version of a macOS release from the Darwin version.
|
||||
|
||||
@param release - By default, the current operating system is used, but you can supply a custom [Darwin kernel version](http://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release).
|
||||
@param release - By default, the current operating system is used, but you can supply a custom [Darwin kernel version](https://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release).
|
||||
|
||||
@example
|
||||
```
|
||||
@@ -23,12 +23,15 @@ declare const macosRelease: {
|
||||
|
||||
macosRelease('14.0.0');
|
||||
//=> {name: 'Yosemite', version: '10.10'}
|
||||
|
||||
macosRelease('20.0.0');
|
||||
//=> {name: 'Big Sur', version: '11'}
|
||||
```
|
||||
*/
|
||||
(release?: string): string;
|
||||
(release?: string): {name: string, version: string};
|
||||
|
||||
// TODO: remove this in the next major version, refactor the whole definition to:
|
||||
// declare function macosRelease(release?: string): string;
|
||||
// declare function macosRelease(release?: string): {name: string, version: string};
|
||||
// export = macosRelease;
|
||||
default: typeof macosRelease;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user