mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add Type Definitions for imsi-grok (#36594)
* Add imsi-grok Generated Config * Add Type Definitions for imsi-grok
This commit is contained in:
parent
b8495a257c
commit
dd3c25ab8e
3
types/imsi-grok/imsi-grok-tests.ts
Normal file
3
types/imsi-grok/imsi-grok-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import { grok } from 'imsi-grok';
|
||||
|
||||
grok(''); // $ExpectType IMSIBreakdown | null
|
||||
16
types/imsi-grok/index.d.ts
vendored
Normal file
16
types/imsi-grok/index.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// Type definitions for imsi-grok 1.0
|
||||
// Project: https://github.com/atis--/imsi-grok#readme
|
||||
// Definitions by: Dean Pienaar <https://github.com/deanpienaar>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// tslint:disable-next-line interface-name
|
||||
export interface IMSIBreakdown {
|
||||
mcc: string;
|
||||
mnc: string;
|
||||
country_iso: string;
|
||||
country_name: string;
|
||||
country_code: string;
|
||||
network_name: string;
|
||||
}
|
||||
|
||||
export function grok(imsi: string): IMSIBreakdown | null;
|
||||
23
types/imsi-grok/tsconfig.json
Normal file
23
types/imsi-grok/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"imsi-grok-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/imsi-grok/tslint.json
Normal file
1
types/imsi-grok/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user