Skip to content

Commit 96c9a32

Browse files
chore: Add missing TFeatures argument (#5664)
1 parent 5b57f9d commit 96c9a32

File tree

77 files changed

+154
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+154
-137
lines changed

examples/angular/basic/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const defaultData: Array<Person> = [
4343
},
4444
]
4545

46-
const defaultColumns: Array<ColumnDef<Person>> = [
46+
const defaultColumns: Array<ColumnDef<any, Person>> = [
4747
{
4848
accessorKey: 'firstName',
4949
cell: (info) => info.getValue(),

examples/angular/column-ordering/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717
ColumnVisibilityState,
1818
} from '@tanstack/angular-table'
1919

20-
const defaultColumns: Array<ColumnDef<Person>> = [
20+
const defaultColumns: Array<ColumnDef<any, Person>> = [
2121
{
2222
header: 'Name',
2323
footer: (props) => props.column.id,

examples/angular/column-pinning-sticky/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Person = {
2727
progress: number
2828
}
2929

30-
const defaultColumns: Array<ColumnDef<Person>> = [
30+
const defaultColumns: Array<ColumnDef<any, Person>> = [
3131
{
3232
accessorKey: 'firstName',
3333
id: 'firstName',
@@ -103,7 +103,7 @@ export class AppComponent {
103103
})
104104

105105
readonly getCommonPinningStyles = (
106-
column: Column<Person>,
106+
column: Column<any, Person>,
107107
): Record<string, any> => {
108108
const isPinned = column.getIsPinned()
109109
const isLastLeftPinnedColumn =

examples/angular/column-pinning/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type Person = {
2828
progress: number
2929
}
3030

31-
const defaultColumns: Array<ColumnDef<Person>> = [
31+
const defaultColumns: Array<ColumnDef<any, Person>> = [
3232
{
3333
header: 'Name',
3434
footer: (props) => props.column.id,

examples/angular/column-visibility/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const defaultData: Array<Person> = [
4848
},
4949
]
5050

51-
const defaultColumns: Array<ColumnDef<Person>> = [
51+
const defaultColumns: Array<ColumnDef<any, Person>> = [
5252
{
5353
header: 'Name',
5454
footer: (props) => props.column.id,

examples/angular/filters/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class AppComponent {
3333
readonly columnFilters = signal<ColumnFiltersState>([])
3434
readonly data = signal(makeData(5000))
3535

36-
readonly columns: Array<ColumnDef<Person>> = [
36+
readonly columns: Array<ColumnDef<any, Person>> = [
3737
{
3838
accessorKey: 'firstName',
3939
cell: (info) => info.getValue(),
@@ -74,7 +74,7 @@ export class AppComponent {
7474
},
7575
]
7676

77-
table = injectTable<Person>(() => ({
77+
table = injectTable<any, Person>(() => ({
7878
columns: this.columns,
7979
data: this.data(),
8080
state: {

examples/angular/grouping/src/app/columns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type Person = {
1010
subRows?: Array<Person>
1111
}
1212

13-
export const columns: Array<ColumnDef<Person>> = [
13+
export const columns: Array<ColumnDef<any, Person>> = [
1414
{
1515
header: 'Name',
1616
columns: [

examples/angular/row-selection-signal/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class AppComponent {
3636
readonly ageHeaderCell =
3737
viewChild.required<TemplateRef<unknown>>('ageHeaderCell')
3838

39-
readonly columns: Array<ColumnDef<Person>> = [
39+
readonly columns: Array<ColumnDef<any, Person>> = [
4040
{
4141
id: 'select',
4242
header: () => TableHeadSelectionComponent<Person>,

examples/angular/row-selection/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class AppComponent {
3838
readonly ageHeaderCell =
3939
viewChild.required<TemplateRef<unknown>>('ageHeaderCell')
4040

41-
readonly columns: Array<ColumnDef<Person>> = [
41+
readonly columns: Array<ColumnDef<any, Person>> = [
4242
{
4343
id: 'select',
4444
header: () => {

examples/angular/signal-input/src/app/person-table/person-table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class PersonTableComponent {
2323

2424
readonly pagination = model.required<PaginationState>()
2525

26-
readonly columns: Array<ColumnDef<Person>> = [
26+
readonly columns: Array<ColumnDef<any, Person>> = [
2727
{
2828
accessorKey: 'firstName',
2929
header: 'First Name',

0 commit comments

Comments
 (0)