Skip to content

Commit b1bf095

Browse files
committed
fix: correct type exports for ESM compatibility
- Use 'export type' for type-only exports in utils/index.ts - Import types with 'import type' to avoid runtime imports - Fixes module resolution issues with tsup build
1 parent 85773db commit b1bf095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict'
22

33
import { removeProps } from './core'
4-
import { ESSearchResponse, ESHit, ESBulkResponseItem } from '../types'
4+
import type { ESSearchResponse, ESHit, ESBulkResponseItem } from '../types'
55

66
export * from './core'
77
export * from './parse-query'
88
export * from './params'
9-
export { ESSearchResponse, ESHit, ESBulkResponseItem } from '../types'
9+
export type { ESSearchResponse, ESHit, ESBulkResponseItem } from '../types'
1010

1111
/**
1212
* Maps Elasticsearch find results to Feathers format

0 commit comments

Comments
 (0)