Загрузка данных


ERROR in ./src/widgets/TradingResult/components/Repo/repo-table/index.tsx:48:7
TS2322: Type '(c: TableController<Record<string, unknown>>) => void' is not assignable to type '(controller: TableController<GroupRow>) => void'.
  Types of parameters 'c' and 'controller' are incompatible.
    Type 'TableController<GroupRow>' is not assignable to type 'TableController<Record<string, unknown>>'.
      Types of property 'getShowedData' are incompatible.
        Type '(f: GetShowDataAndColsFunc<GroupRow>) => void' is not assignable to type '(f: GetShowDataAndColsFunc<Record<string, unknown>>) => void'.
          Types of parameters 'f' and 'f' are incompatible.
            Types of parameters 'columns' and 'columns' are incompatible.
              Type 'ResizableColumnType<GroupRow>[]' is not assignable to type 'ResizableColumnType<Record<string, unknown>>[]'.
                Type 'ResizableColumnType<GroupRow>' is not assignable to type 'ResizableColumnType<Record<string, unknown>>'.
                  Types of property 'render' are incompatible.
                    Type '((value: any, record: GroupRow, index?: number | undefined) => any) | undefined' is not assignable to type '((value: any, record: Record<string, unknown>, index?: number | undefined) => any) | undefined'.
                      Type '(value: any, record: GroupRow, index?: number | undefined) => any' is not assignable to type '(value: any, record: Record<string, unknown>, index?: number | undefined) => any'.
                        Types of parameters 'record' and 'record' are incompatible.
                          Type 'Record<string, unknown>' is not assignable to type 'GroupRow'.
                            Type 'Record<string, unknown>' is missing the following properties from type 'Group': name, aggPrice, aggQuantity, aggAccint, and 11 more.
    46 |       className={repoTableStyles.repoTable}
    47 |       configurable={withGrouping ? COLUMNS_CONFIGURABLE_SETTINGS_WITHOUT_SORTING : COLUMNS_CONFIGURABLE_SETTINGS}
  > 48 |       setController={requester}
       |       ^^^^^^^^^^^^^
    49 |     />
    50 |   );
    51 | };
ERROR in ./src/widgets/TradingResult/components/Repo/repo-table/logic/table/useTable.tsx:49:55
TS2345: Argument of type 'Record<string, string | object>[]' is not assignable to parameter of type 'GroupRow[]'.
  Type 'Record<string, string | object>' is not assignable to type 'GroupRow'.
    Type 'Record<string, string | object>' is missing the following properties from type 'Group': name, aggPrice, aggQuantity, aggAccint, and 11 more.
    47 |   /** Совмещаем групповые и их дочерние строки в один массив */
    48 |   const mergedGroupAndSubRowsData = useMemo(
  > 49 |     () => unifyGroupAndChildrenRows(groupSubRowsData, groupsData, buttonMargin, loadMore),
       |                                                       ^^^^^^^^^^
    50 |     [groupsData, groupSubRowsData],
    51 |   );
    52 |