mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
482 B
TypeScript
18 lines
482 B
TypeScript
// Type definitions for default-gateway 3.0
|
|
// Project: https://github.com/silverwind/default-gateway#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export const v4: DefaultGatewayFn;
|
|
export const v6: DefaultGatewayFn;
|
|
|
|
export interface DefaultGatewayFn {
|
|
(): Promise<Gateway>;
|
|
sync(): Gateway;
|
|
}
|
|
|
|
export interface Gateway {
|
|
gateway: string;
|
|
interface: string | null;
|
|
}
|