@types/default-gateway
TypeScript definitions for default-gateway
Last updated 6 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/default-gateway 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/default-gateway

Summary

This package contains type definitions for default-gateway (https://github.com/silverwind/default-gateway#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/default-gateway.

index.d.ts

export function gateway4async(): Promise<Result<4>>;
export function gateway6async(): Promise<Result<6>>;
export function gateway4sync(): Result<4>;
export function gateway6sync(): Result<6>;

export interface Result<Family extends 4 | 6> {
    /**
     * The IP address of the default gateway.
     */
    gateway: string;

    /**
     * The IP address version of `gateway`.
     */
    version: Family;

    /**
     * Name of the interface.
     * On Windows, this is the network adapter name.
     * This can be `null` if it cannot be determined.
     */
    int: string | null;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender, Michele Della Mea, and Junxiao Shi.

Current Tags

  • 3.0.1                                ...           latest (6 years ago)
  • 3.0.0                                ...           ts2.0 (7 years ago)
  • 3.0.0                                ...           ts2.1 (7 years ago)
  • 3.0.0                                ...           ts2.2 (7 years ago)
  • 3.0.0                                ...           ts2.3 (7 years ago)
  • 3.0.0                                ...           ts2.4 (7 years ago)
  • 3.0.0                                ...           ts2.5 (7 years ago)
  • 3.0.0                                ...           ts2.6 (7 years ago)
  • 3.0.0                                ...           ts2.7 (7 years ago)
  • 3.0.1                                ...           ts2.8 (6 years ago)
  • 3.0.1                                ...           ts2.9 (6 years ago)
  • 3.0.1                                ...           ts3.0 (6 years ago)
  • 3.0.1                                ...           ts3.1 (6 years ago)
  • 3.0.1                                ...           ts3.2 (6 years ago)
  • 3.0.1                                ...           ts3.3 (6 years ago)
  • 3.0.1                                ...           ts3.4 (6 years ago)
  • 3.0.1                                ...           ts3.5 (6 years ago)
  • 3.0.1                                ...           ts3.6 (6 years ago)
  • 3.0.1                                ...           ts3.7 (6 years ago)
  • 3.0.1                                ...           ts3.8 (6 years ago)
  • 3.0.1                                ...           ts3.9 (6 years ago)
  • 3.0.1                                ...           ts4.0 (6 years ago)
  • 3.0.1                                ...           ts4.1 (6 years ago)
  • 3.0.1                                ...           ts4.2 (6 years ago)
  • 3.0.1                                ...           ts4.3 (6 years ago)
  • 3.0.1                                ...           ts4.4 (6 years ago)
  • 3.0.1                                ...           ts4.5 (6 years ago)
  • 3.0.1                                ...           ts4.6 (6 years ago)
  • 3.0.1                                ...           ts4.7 (6 years ago)
  • 3.0.1                                ...           ts4.8 (6 years ago)
  • 3.0.1                                ...           ts4.9 (6 years ago)

2 Versions

  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |