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