Skip to content

Commit 83e2c37

Browse files
fix: export types IdIdentifier, StringHeaderIdentifier, AccessorKeyColumnDefBase (#5133)
fixes those build issues: TS4023: Exported variable 'myHook' has or is using name 'AccessorKeyColumnDefBase' from external module ".../node_modules/@tanstack/table-core/build/lib/types" but cannot be named. TS4023: Exported variable 'myHook' has or is using name 'IdIdentifier' from external module ".../node_modules/@tanstack/table-core/build/lib/types" but cannot be named. TS4023: Exported variable 'myHook' has or is using name 'StringHeaderIdentifier' from external module ".../node_modules/@tanstack/table-core/build/lib/types" but cannot be named.
1 parent c214ab3 commit 83e2c37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/table-core/src/types.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ export type StringOrTemplateHeader<TData, TValue> =
200200
| string
201201
| ColumnDefTemplate<HeaderContext<TData, TValue>>
202202

203-
interface StringHeaderIdentifier {
203+
export interface StringHeaderIdentifier {
204204
header: string
205205
id?: string
206206
}
207207

208-
interface IdIdentifier<TData extends RowData, TValue> {
208+
export interface IdIdentifier<TData extends RowData, TValue> {
209209
id: string
210210
header?: StringOrTemplateHeader<TData, TValue>
211211
}
@@ -265,7 +265,7 @@ export type AccessorFnColumnDef<
265265
TValue = unknown,
266266
> = AccessorFnColumnDefBase<TData, TValue> & ColumnIdentifiers<TData, TValue>
267267

268-
interface AccessorKeyColumnDefBase<TData extends RowData, TValue = unknown>
268+
export interface AccessorKeyColumnDefBase<TData extends RowData, TValue = unknown>
269269
extends ColumnDefBase<TData, TValue> {
270270
id?: string
271271
accessorKey: (string & {}) | keyof TData

0 commit comments

Comments
 (0)