Skip to content

Commit

Permalink
feat: add readonly modifier for antd table columns type
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Apr 4, 2022
1 parent 6776bb8 commit dc0adc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export interface ColumnGroupType<RecordType> extends Omit<ColumnType<RecordType>
children: ColumnsType<RecordType>;
}

export type ColumnsType<RecordType = unknown> = (
export type ColumnsType<RecordType = unknown> = readonly (
| ColumnGroupType<RecordType>
| ColumnType<RecordType>
)[];
Expand Down

0 comments on commit dc0adc0

Please sign in to comment.