From 8ad51230dee90e822c7436f830b3a57821e66a90 Mon Sep 17 00:00:00 2001 From: Rinat Arsaev <11846445+KrickRay@users.noreply.github.com> Date: Wed, 13 Jul 2022 14:13:55 +0300 Subject: [PATCH] Remove ts nocheck (#8) --- package.json | 2 +- src/compile.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 585732b..4fc1aaf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vality/thrift-ts", - "version": "2.3.1", + "version": "2.4.0", "description": "parse .thrift file to .d.ts", "main": "./lib/index.js", "scripts": { diff --git a/src/compile.ts b/src/compile.ts index 7121f47..fe3f4e8 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -99,9 +99,8 @@ class Compile extends BaseCompiler { this.definition ? "_types.d.ts" : ".ts" }`; - // TODO: ts-nocheck temporary solution for building projects with importing dependencies from the wrong protocol (may happen when merging protocols) const content = prettier.format( - "// @ts-nocheck\n" + "// tslint:disable\n" + this.buffer.join(""), + "// tslint:disable\n" + this.buffer.join(""), { parser: "typescript" } );