From 83e2c373ef37f84ba3b788d33479e6017899b62d Mon Sep 17 00:00:00 2001 From: maxence-lefebvre Date: Wed, 20 Dec 2023 18:37:54 +0100 Subject: [PATCH] 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. --- packages/table-core/src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/table-core/src/types.ts b/packages/table-core/src/types.ts index 2a6e0a76ef..38aea18aa5 100644 --- a/packages/table-core/src/types.ts +++ b/packages/table-core/src/types.ts @@ -200,12 +200,12 @@ export type StringOrTemplateHeader = | string | ColumnDefTemplate> -interface StringHeaderIdentifier { +export interface StringHeaderIdentifier { header: string id?: string } -interface IdIdentifier { +export interface IdIdentifier { id: string header?: StringOrTemplateHeader } @@ -265,7 +265,7 @@ export type AccessorFnColumnDef< TValue = unknown, > = AccessorFnColumnDefBase & ColumnIdentifiers -interface AccessorKeyColumnDefBase +export interface AccessorKeyColumnDefBase extends ColumnDefBase { id?: string accessorKey: (string & {}) | keyof TData