mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
303 B
TypeScript
12 lines
303 B
TypeScript
import * as defaultGateway from 'default-gateway';
|
|
|
|
defaultGateway.v4().then(result => {
|
|
result; // $ExpectType Gateway
|
|
});
|
|
defaultGateway.v6().then(result => {
|
|
result; // $ExpectType Gateway
|
|
});
|
|
|
|
defaultGateway.v4.sync(); // $ExpectType Gateway
|
|
defaultGateway.v6.sync(); // $ExpectType Gateway
|