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:
Juan E. Tenorio Arzola 2020-05-19 16:09:43 -04:00 committed by GitHub
parent ecc77f83c0
commit b67e3c23fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5583 additions and 0 deletions

View 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

File diff suppressed because it is too large Load Diff

View 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
View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }