Upgrade master-only packages to types-2.0

This commit is contained in:
Nathan Shively-Sanders
2016-11-22 09:48:00 -08:00
parent 2f92400b50
commit 3c209cb7bf
13 changed files with 240 additions and 183 deletions

View File

@@ -2,7 +2,6 @@
// Project: https://www.npmjs.com/package/plugapi
// Definitions by: Brice Theurillat <https://github.com/BNedry/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "plugapi" {
interface PlugLogin {
email: string;
@@ -417,4 +416,4 @@ declare module "plugapi" {
var PlugAPI: PlugAPIStatic;
export = PlugAPI;
}
}

View File

@@ -1,5 +1,3 @@
/// <reference path="./plugapi.d.ts" />
import * as PlugAPI from "plugapi";
new PlugAPI({
@@ -32,4 +30,4 @@ new PlugAPI({
} else {
console.log("Error initializing plugAPI: " + err);
}
});
});

19
plugapi/tsconfig.json Normal file
View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"plugapi-tests.ts"
]
}

1
plugapi/tslint.json Normal file
View File

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