From c278909f043e9055c67664eb254f26ef8fa611aa Mon Sep 17 00:00:00 2001 From: Dima Kaltovich Date: Wed, 8 Nov 2023 21:01:37 +0100 Subject: [PATCH] Typescript Import error #612 fix: https://github.com/stomp-js/stompjs/issues/612 --- esm6/frame-impl.d.ts | 2 +- esm6/i-message.d.ts | 2 +- esm6/types.d.ts | 4 ++-- package.json | 2 +- src/frame-impl.ts | 2 +- src/i-message.ts | 2 +- src/stomp-handler.ts | 2 +- src/types.ts | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/esm6/frame-impl.d.ts b/esm6/frame-impl.d.ts index a18573d..847eedc 100644 --- a/esm6/frame-impl.d.ts +++ b/esm6/frame-impl.d.ts @@ -1,4 +1,4 @@ -import { IFrame } from './i-frame.js'; +import type { IFrame } from './i-frame.js'; import { StompHeaders } from './stomp-headers.js'; import { IRawFrameType } from './types.js'; /** diff --git a/esm6/i-message.d.ts b/esm6/i-message.d.ts index 469c7d3..11de325 100644 --- a/esm6/i-message.d.ts +++ b/esm6/i-message.d.ts @@ -1,4 +1,4 @@ -import { IFrame } from './i-frame.js'; +import type { IFrame } from './i-frame.js'; import { StompHeaders } from './stomp-headers.js'; /** * Instance of Message will be passed to [subscription callback]{@link Client#subscribe} diff --git a/esm6/types.d.ts b/esm6/types.d.ts index c5365f4..353712e 100644 --- a/esm6/types.d.ts +++ b/esm6/types.d.ts @@ -1,5 +1,5 @@ -import { IFrame } from './i-frame.js'; -import { IMessage } from './i-message.js'; +import type { IFrame } from './i-frame.js'; +import type { IMessage } from './i-message.js'; import { StompHeaders } from './stomp-headers.js'; import { Versions } from './versions.js'; /** diff --git a/package.json b/package.json index 6ca5429..a1ec8d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stomp/stompjs", - "version": "7.0.0", + "version": "7.0.1", "description": "STOMP client for Javascript and Typescript", "scripts": { "clean": "rm -rf bundles esm6", diff --git a/src/frame-impl.ts b/src/frame-impl.ts index b8ba18b..593ac39 100644 --- a/src/frame-impl.ts +++ b/src/frame-impl.ts @@ -1,5 +1,5 @@ import { BYTE } from './byte.js'; -import { IFrame } from './i-frame.js'; +import type { IFrame } from './i-frame.js'; import { StompHeaders } from './stomp-headers.js'; import { IRawFrameType } from './types.js'; diff --git a/src/i-message.ts b/src/i-message.ts index ec1c9bb..31f8112 100644 --- a/src/i-message.ts +++ b/src/i-message.ts @@ -1,4 +1,4 @@ -import { IFrame } from './i-frame.js'; +import type { IFrame } from './i-frame.js'; import { StompHeaders } from './stomp-headers.js'; /** diff --git a/src/stomp-handler.ts b/src/stomp-handler.ts index 198a82f..5f280a2 100644 --- a/src/stomp-handler.ts +++ b/src/stomp-handler.ts @@ -1,7 +1,7 @@ import { BYTE } from './byte.js'; import { Client } from './client.js'; import { FrameImpl } from './frame-impl.js'; -import { IMessage } from './i-message.js'; +import type { IMessage } from './i-message.js'; import { ITransaction } from './i-transaction.js'; import { Parser } from './parser.js'; import { StompHeaders } from './stomp-headers.js'; diff --git a/src/types.ts b/src/types.ts index c8ba1f7..2c8ff51 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ -import { IFrame } from './i-frame.js'; -import { IMessage } from './i-message.js'; +import type { IFrame } from './i-frame.js'; +import type { IMessage } from './i-message.js'; import { StompHeaders } from './stomp-headers.js'; import { Versions } from './versions.js';