used generated files

This commit is contained in:
Joshua Hall
2018-06-26 08:49:32 -05:00
parent 7957afa728
commit ba730c67d1
3 changed files with 23 additions and 29 deletions

View File

@@ -2,7 +2,7 @@ import { getProfile, OverwatchPlatform, OverwatchServerRegion, ProfileApiRespons
const platform: OverwatchPlatform = 'pc';
const region: OverwatchServerRegion = 'us';
const battleTag: string = 'sparK#12434';
const battleTag = 'sparK#12434';
getProfile(platform, region, battleTag, (err: Error | null, data: ProfileApiResponse) => {
if (err === null) {

View File

@@ -1,13 +1,23 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node"
},
"files": [
"index.d.ts",
"overwatch-api-tests.ts"
]
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"overwatch-api-tests.ts"
]
}

View File

@@ -1,17 +1 @@
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"interface-name": false,
"quotemark": [
true,
"single"
],
"no-console": false,
"ordered-imports": false
},
"rulesDirectory": []
}
{ "extends": "dtslint/dt.json" }