From 5cb52ad82e200239e0793e50d756bdb074f2b117 Mon Sep 17 00:00:00 2001 From: "Zhuohuan LI (CARPE DIEM)" Date: Mon, 10 Oct 2016 22:36:24 +0800 Subject: [PATCH] fight with typescript @types ... --- src/io.ts | 2 +- tsconfig.json | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/io.ts b/src/io.ts index 7cf86464..234a0460 100644 --- a/src/io.ts +++ b/src/io.ts @@ -145,7 +145,7 @@ class Io { this.currentState('connected') // FIXME: how to keep alive??? - ws._socket.setKeepAlive(true, 100) + // ws._socket.setKeepAlive(true, 100) this.reconnectTimeout = null diff --git a/tsconfig.json b/tsconfig.json index 0be04593..2ba6a44a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,19 @@ { "compilerOptions": { - "module": "commonjs" - , "target": "es6" - , "types" : [ "node" ] + "target": "es6" + , "outDir": "dist" , "noImplicitAny": false + , "strictNullChecks": true , "sourceMap": true } , "exclude": [ - "node_modules" + "node_modules" , "dist" ] + , "files": [ + "src/*.ts" + , "bin/*.ts" + , "example/*.ts" + // , "test/*.ts" + ] } -- GitLab