From 6c10dccad3ea07a26e78a2581f57d7f5c47b2e0e Mon Sep 17 00:00:00 2001 From: nevehallon Date: Mon, 25 Dec 2023 11:17:23 +0200 Subject: [PATCH] fix: errors --- bageldb-js/src/bagelDBRequest.ts | 1 + bageldb-js/src/interfaces.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bageldb-js/src/bagelDBRequest.ts b/bageldb-js/src/bagelDBRequest.ts index a03d2aa..ed0e019 100644 --- a/bageldb-js/src/bagelDBRequest.ts +++ b/bageldb-js/src/bagelDBRequest.ts @@ -757,6 +757,7 @@ export default class BagelDBRequest { let _EventSource; if (isServerEnv()) { try { + // @ts-ignore missing @types/eventsource package _EventSource = await import('eventsource'); } catch (error) { // eslint-disable-next-line no-console diff --git a/bageldb-js/src/interfaces.ts b/bageldb-js/src/interfaces.ts index 18e302e..9d08443 100644 --- a/bageldb-js/src/interfaces.ts +++ b/bageldb-js/src/interfaces.ts @@ -5,7 +5,7 @@ import Bagel from './index'; import BagelDBRequest from './bagelDBRequest'; import BagelUsersRequest from './users'; -import { AxiosRequestHeaders } from 'axios'; +import { type AxiosRequestHeaders } from 'axios'; type FileUploadArgs = { selectedImage?: any;