Skip to content

Commit

Permalink
247 generic data type for Column
Browse files Browse the repository at this point in the history
  • Loading branch information
johanrd authored Feb 21, 2024
1 parent 2dc68fe commit ce5c7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ember-headless-table/src/plugins/metadata/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { Metadata } from './plugin';

import type { Column, Table } from '[public-types]';

export const forColumn = (column: Column<any>, key: string) => {
export const forColumn = <DataType = unknown>(column: Column<DataType>, key: string) => {
return options.forColumn(column, Metadata)[key];
};

export const forTable = (table: Table<any>, key: string) => {
export const forTable = <DataType = unknown>(table: Table<DataType>, key: string) => {
return options.forTable(table, Metadata)[key];
};

0 comments on commit ce5c7e4

Please sign in to comment.