@enonic-types/lib-grid 7.16.2-RC2 → 8.0.0-A2
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.
- package/grid.d.ts +4 -4
- package/package.json +2 -2
package/grid.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ declare global {
|
|
|
3
3
|
'/lib/xp/grid': typeof import('./grid');
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
|
|
6
|
+
export type SharedMapValueType = string | number | boolean | object | null;
|
|
7
|
+
export type GridMap = Record<string, SharedMapValueType>;
|
|
8
|
+
export type SharedMapModifierFn<Map extends GridMap, Key extends keyof Map> = (value: Map[Key] | null) => ConvertedType;
|
|
9
|
+
type ConvertedType = SharedMapValueType | Record<string, unknown> | object[];
|
|
10
10
|
export interface SetParams<Map extends GridMap, Key extends keyof Map> {
|
|
11
11
|
key: Key;
|
|
12
12
|
value: Map[Key] | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-grid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-A2",
|
|
4
4
|
"description": "Type definitions for lib-grid.",
|
|
5
5
|
"types": "grid.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/enonic/xp/tree/master#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@enonic-types/core": "
|
|
30
|
+
"@enonic-types/core": "8.0.0-A2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|