@devtron-labs/devtron-fe-common-lib 0.0.59-beta-2 → 0.0.59-beta-3

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.
@@ -37,6 +37,7 @@ export declare enum SelectAllDialogStatus {
37
37
  OPEN = "OPEN",
38
38
  CLOSED = "CLOSED"
39
39
  }
40
+ export type BulkSelectionIdentifiersType<T> = Record<string | number, T>;
40
41
  export interface UseBulkSelectionProps<T> {
41
42
  /**
42
43
  * Response from API, assuming structure to be array of objects with key and values
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.59-beta-2",
3
+ "version": "0.0.59-beta-3",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -45,6 +45,9 @@ export enum SelectAllDialogStatus {
45
45
  CLOSED = 'CLOSED',
46
46
  }
47
47
 
48
+ // This type is intended to be used with UseBulkSelectionProps, e.g, UseBulkSelectionProps<BulkSelectionIdentifiersType<boolean>>
49
+ export type BulkSelectionIdentifiersType<T> = Record<string | number, T>
50
+
48
51
  export interface UseBulkSelectionProps<T> {
49
52
  /**
50
53
  * Response from API, assuming structure to be array of objects with key and values