@aloudata/aloudata-design 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import { ITableProps } from './interface';
3
3
  import './style/index';
4
- declare function Table<RecordType extends Record<string, unknown>>(props: ITableProps<RecordType>, ref?: React.Ref<unknown>): ReactElement;
4
+ declare function Table<RecordType extends object>(props: ITableProps<RecordType>, ref?: React.Ref<unknown>): ReactElement;
5
5
  declare const _default: typeof Table;
6
6
  export default _default;
@@ -2,7 +2,7 @@ import React, { MutableRefObject } from 'react';
2
2
  import { HeaderGroup, SortingRule } from 'react-table';
3
3
  import { ISort, TSortOrder } from '../../interface';
4
4
  import { IWidthDetail } from '../../utils';
5
- interface ITableWithoutHeightProps<T extends Record<string, unknown>> {
5
+ interface ITableWithoutHeightProps<T extends object> {
6
6
  headerGroups: HeaderGroup<T>[];
7
7
  canResizeColumn?: boolean;
8
8
  defaultSort?: ISort<T>;
@@ -19,5 +19,5 @@ interface ITableWithoutHeightProps<T extends Record<string, unknown>> {
19
19
  columnsWidthMapRef: MutableRefObject<Map<string, IWidthDetail> | undefined>;
20
20
  columnsTotalWidthRef: MutableRefObject<number>;
21
21
  }
22
- declare function TableHead<T extends Record<string, unknown>>(props: ITableWithoutHeightProps<T>): JSX.Element;
22
+ declare function TableHead<T extends object>(props: ITableWithoutHeightProps<T>): JSX.Element;
23
23
  export default TableHead;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",