Skip to content

Commit

Permalink
update typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
krisselden committed Mar 8, 2017
1 parent 35d90a5 commit 1339553
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 2,779 deletions.
2 changes: 1 addition & 1 deletion lib/codegen/protocol-codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default class ProtocolCodegen {
return desc.type;
case "string":
if (desc.enum) {
return desc.enum.map(JSON.stringify).join(" | ");
return desc.enum.map(str => JSON.stringify(str)).join(" | ");
}
return "string";
case "array":
Expand Down
5 changes: 4 additions & 1 deletion lib/tmpdir-creator.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { Disposable } from "./common";
import { tmpdir } from "os";
import * as path from "path";
import * as mktemp from "mktemp";
import * as rimraf from "rimraf";

const mktemp: {
createDir(template: string, callback: (err: Error, filename: string) => void);
} = require("mktemp");

export interface ITmpDirCreator {
create(): Promise<ITmpDir>;
}
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"author": "Kris Selden <[email protected]>",
"license": "Apache-2.0",
"dependencies": {
"@types/node": "^7.0.5",
"@types/rimraf": "^0.0.28",
"@types/tape": "^4.2.29",
"@types/ws": "^0.0.38",
"mktemp": "^0.4.0",
"rimraf": "^2.5.1",
"ws": "^1.0.1"
Expand All @@ -27,7 +31,7 @@
"faucet": "0.0.1",
"tape": "^4.4.0",
"tslint": "^3.3.0",
"typescript": "^1.8.0"
"typescript": "2"
},
"engine": "node >= 4.0.0"
}
8 changes: 1 addition & 7 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"target": "es6",
"target": "es2015",
"outDir": "../dist",
"sourceMap": true,
"noLib": true,
"moduleResolution": "node"
},
"files": [
"../node_modules/typescript/lib/lib.core.es6.d.ts",
"../typings/lib.es6.d.ts",
"../typings/node/node.d.ts",
"../typings/rimraf/rimraf.d.ts",
"../typings/mktemp/mktemp.d.ts",
"../typings/ws/ws.d.ts",
"../typings/tape/tape.d.ts",
"domains.ts",
Expand Down
10 changes: 1 addition & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"target": "es6",
"target": "es2015",
"outDir": "dist",
"sourceMap": true,
"noLib": true,
"moduleResolution": "node"
},
"files": [
"node_modules/typescript/lib/lib.core.es6.d.ts",
"typings/lib.es6.d.ts",
"typings/node/node.d.ts",
"typings/rimraf/rimraf.d.ts",
"typings/mktemp/mktemp.d.ts",
"typings/ws/ws.d.ts",
"typings/tape/tape.d.ts",
"test.ts"
]
}
222 changes: 0 additions & 222 deletions typings/lib.es6.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions typings/mktemp/mktemp.d.ts

This file was deleted.

Loading

0 comments on commit 1339553

Please sign in to comment.