From ce0c741393c643855232f096ead246d611f69781 Mon Sep 17 00:00:00 2001 From: Alexis Glass Date: Sun, 19 Nov 2023 01:33:02 +0100 Subject: [PATCH] Fix TS compilation error on tsc 4.5.4 --- test-suite/djinni/vendor/third-party/proto/ts/test.ts | 2 +- test-suite/djinni/vendor/third-party/proto/ts/test2.ts | 2 +- test-suite/handwritten-src/ts/tsconfig.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test-suite/djinni/vendor/third-party/proto/ts/test.ts b/test-suite/djinni/vendor/third-party/proto/ts/test.ts index 2fe1d7ef..6a943e1f 100644 --- a/test-suite/djinni/vendor/third-party/proto/ts/test.ts +++ b/test-suite/djinni/vendor/third-party/proto/ts/test.ts @@ -1,6 +1,6 @@ /* eslint-disable */ import { util, configure, Writer, Reader } from "protobufjs/minimal"; -import * as Long from "long"; +import Long from "long"; export const protobufPackage = "djinni.test"; diff --git a/test-suite/djinni/vendor/third-party/proto/ts/test2.ts b/test-suite/djinni/vendor/third-party/proto/ts/test2.ts index 2c017343..f691e340 100644 --- a/test-suite/djinni/vendor/third-party/proto/ts/test2.ts +++ b/test-suite/djinni/vendor/third-party/proto/ts/test2.ts @@ -1,6 +1,6 @@ /* eslint-disable */ import { util, configure, Writer, Reader } from "protobufjs/minimal"; -import * as Long from "long"; +import Long from "long"; export const protobufPackage = "djinni.test2"; diff --git a/test-suite/handwritten-src/ts/tsconfig.json b/test-suite/handwritten-src/ts/tsconfig.json index ee669b93..29e45bc3 100644 --- a/test-suite/handwritten-src/ts/tsconfig.json +++ b/test-suite/handwritten-src/ts/tsconfig.json @@ -5,6 +5,7 @@ "paths": { "@djinni_support/*": ["../../../support-lib/ts/*"] }, + "esModuleInterop": true, "strict": true, }, "include": ["./*.ts"],