UNPKG

@types/getos

Version:
46 lines (36 loc) 1.11 kB
# Installation > `npm install --save @types/getos` # Summary This package contains type definitions for getos (https://github.com/retrohacker/getos). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/getos. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/getos/index.d.ts) ````ts export = getos; declare function getos(cb: (error: Error | null, os: getos.Os) => void): string; declare namespace getos { type Os = OtherOs | LinuxOs; interface OtherOs { os: | "aix" | "android" | "darwin" | "freebsd" | "openbsd" | "sunos" | "win32" | "cygwin"; } interface LinuxOs { os: "linux"; dist: string; release: string; codename?: string | undefined; } } ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: none # Credits These definitions were written by [BendingBender](https://github.com/BendingBender).