diff --git a/resources/js/Components/Pages/RecordsPage.jsx b/resources/js/Components/Pages/RecordsPage.jsx index 3efcdaefd..06a3d06c0 100644 --- a/resources/js/Components/Pages/RecordsPage.jsx +++ b/resources/js/Components/Pages/RecordsPage.jsx @@ -80,14 +80,18 @@ export type SectionT = FieldT[] | { fields: FieldT[] | { [string]: FieldT } }; +export type ColumnsT = { [string]: [string] | ColumnT } | ColumnT[]; +export type RowsT = Collection; +export type SectionsT = { [string]: SectionT } | SectionT[]; + /** * @abstract */ export default class RecordsPage extends Page { - columns: { [string]: [string] | ColumnT } | ColumnT[]; - rows: Collection = collect({}); + columns: ColumnsT; + rows: RowsT = collect({}); - sections: { [string]: SectionT } | SectionT[]; + sections: SectionsT; dialogs: Children[];