@types/getos
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/getos

Weekly Downloads

46,393

Version

3.0.4

License

MIT

Unpacked Size

3.56 kB

Total Files

5

Last publish

Collaborators

  • types