diff --git a/deltachat-jsonrpc/typescript/example/example.ts b/deltachat-jsonrpc/typescript/example/example.ts index e45bc18cc..48722260b 100644 --- a/deltachat-jsonrpc/typescript/example/example.ts +++ b/deltachat-jsonrpc/typescript/example/example.ts @@ -1,4 +1,5 @@ -import { DcEvent, DeltaChat } from "../deltachat.js"; +import type { DcEvent } from "../deltachat.js"; +import { DeltaChat } from "../deltachat.js"; var SELECTED_ACCOUNT = 0; diff --git a/deltachat-jsonrpc/typescript/src/client.ts b/deltachat-jsonrpc/typescript/src/client.ts index 83cc2f7e7..10eb5e6c1 100644 --- a/deltachat-jsonrpc/typescript/src/client.ts +++ b/deltachat-jsonrpc/typescript/src/client.ts @@ -1,8 +1,9 @@ import * as T from "../generated/types.js"; -import { EventType } from "../generated/types.js"; +import type { EventType } from "../generated/types.js"; import * as RPC from "../generated/jsonrpc.js"; import { RawClient } from "../generated/client.js"; -import { WebsocketTransport, BaseTransport, Request } from "yerpc"; +import type { Request } from "yerpc"; +import { WebsocketTransport, BaseTransport } from "yerpc"; import { TinyEmitter } from "@deltachat/tiny-emitter"; type Events = { ALL: (accountId: number, event: EventType) => void } & { diff --git a/deltachat-jsonrpc/typescript/test/basic.ts b/deltachat-jsonrpc/typescript/test/basic.ts index d5ce57aec..839c01a5f 100644 --- a/deltachat-jsonrpc/typescript/test/basic.ts +++ b/deltachat-jsonrpc/typescript/test/basic.ts @@ -4,7 +4,8 @@ import chaiAsPromised from "chai-as-promised"; chai.use(chaiAsPromised); import { StdioDeltaChat as DeltaChat } from "../deltachat.js"; -import { RpcServerHandle, startServer } from "./test_base.js"; +import type { RpcServerHandle } from "./test_base.js"; +import { startServer } from "./test_base.js"; describe("basic tests", () => { let serverHandle: RpcServerHandle; diff --git a/deltachat-jsonrpc/typescript/test/online.ts b/deltachat-jsonrpc/typescript/test/online.ts index 92e42776b..03029e04f 100644 --- a/deltachat-jsonrpc/typescript/test/online.ts +++ b/deltachat-jsonrpc/typescript/test/online.ts @@ -1,6 +1,8 @@ import { assert, expect } from "chai"; -import { StdioDeltaChat as DeltaChat, DcEvent } from "../deltachat.js"; -import { RpcServerHandle, createTempUser, startServer } from "./test_base.js"; +import { StdioDeltaChat as DeltaChat } from "../deltachat.js"; +import type { DcEvent } from "../deltachat.js"; +import type { RpcServerHandle } from "./test_base.js"; +import { createTempUser, startServer } from "./test_base.js"; const EVENT_TIMEOUT = 20000; diff --git a/deltachat-jsonrpc/typescript/tsconfig.json b/deltachat-jsonrpc/typescript/tsconfig.json index bbb699cf4..e4690fa34 100644 --- a/deltachat-jsonrpc/typescript/tsconfig.json +++ b/deltachat-jsonrpc/typescript/tsconfig.json @@ -10,6 +10,7 @@ "target": "ES2017", "module": "es2020", "declaration": true, + "verbatimModuleSyntax": true, "esModuleInterop": true, "moduleResolution": "node", "noImplicitAny": true,