Fix the issue of "Initializers are not allowed in ambient contexts" for 3.0.x version of TS

This commit is contained in:
Amar Zavery 2018-11-05 17:27:58 -08:00
Родитель 059c685e07
Коммит e4abb99311
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -5,9 +5,9 @@ import { HttpOperationResponse } from "./httpOperationResponse";
import { WebResource } from "./webResource";
export class RestError extends Error {
static readonly REQUEST_SEND_ERROR = "REQUEST_SEND_ERROR";
static readonly REQUEST_ABORTED_ERROR = "REQUEST_ABORTED_ERROR";
static readonly PARSE_ERROR = "PARSE_ERROR";
static readonly REQUEST_SEND_ERROR: string = "REQUEST_SEND_ERROR";
static readonly REQUEST_ABORTED_ERROR: string = "REQUEST_ABORTED_ERROR";
static readonly PARSE_ERROR: string = "PARSE_ERROR";
code?: string;
statusCode?: number;

Просмотреть файл

@ -114,7 +114,8 @@
"publish-preview": "mocha --no-colors && shx rm -rf dist/test && node ./.scripts/publish",
"local": "ts-node ./.scripts/local.ts",
"preview": "ts-node ./.scripts/preview.ts",
"latest": "ts-node ./.scripts/latest.ts"
"latest": "ts-node ./.scripts/latest.ts",
"prepack": "npm i && npm run build"
},
"sideEffects": false
}