mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Adds types to the gitana npm module (#44731)
* Adds types to the gitana npm module
* - Removes Error class
- Fixes the tests : ✅
This commit is contained in:
parent
ecc77f83c0
commit
b67e3c23fd
5
types/gitana/gitana-tests.ts
Normal file
5
types/gitana/gitana-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as Gitana from 'gitana';
|
||||
|
||||
Gitana.connect('', e => {}); // $ExpectType AppHelper
|
||||
|
||||
Gitana.connect({ password: '', clientSecret: '', username: '', clientKey: '', }, e => {}); // $ExpectType AppHelper
|
||||
5554
types/gitana/index.d.ts
vendored
Normal file
5554
types/gitana/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
23
types/gitana/tsconfig.json
Normal file
23
types/gitana/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gitana-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/gitana/tslint.json
Normal file
1
types/gitana/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user