@base-framework/base 3.7.75 → 3.7.76

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,3 +1,4 @@
1
+ /** @typedef {import('../data/data.js').Data} Data */
1
2
  /**
2
3
  * Component
3
4
  *
@@ -36,9 +37,9 @@ export class Component extends Unit {
36
37
  /**
37
38
  * This will set the data.
38
39
  *
39
- * @returns {object|null}
40
+ * @returns {Data|null}
40
41
  */
41
- setData(): object | null;
42
+ setData(): Data | null;
42
43
  /**
43
44
  * This will setup the component data.
44
45
  *
@@ -72,10 +73,10 @@ export class Component extends Unit {
72
73
  * that should be preserved until the component fetches updates.
73
74
  *
74
75
  * @protected
75
- * @param {object|null} persistedData
76
+ * @param {Data|null} persistedData
76
77
  * @returns {void}
77
78
  */
78
- protected _resumeData(persistedData: object | null): void;
79
+ protected _resumeData(persistedData: Data | null): void;
79
80
  /**
80
81
  * This will refresh the persisted data with fresh
81
82
  * prop-derived values from setData().
@@ -193,5 +194,6 @@ export class Component extends Unit {
193
194
  */
194
195
  protected removeEvents(): void;
195
196
  }
197
+ export type Data = import("../data/data.js").Data;
196
198
  import { Unit } from './unit.js';
197
199
  import { EventHelper } from './event-helper.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.75",
3
+ "version": "3.7.76",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",