codify-plugin-lib 1.0.61 → 1.0.63

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.
@@ -11,7 +11,7 @@ export interface ArrayStatefulParameterOptions<V> extends StatefulParameterOptio
11
11
  }
12
12
  export declare abstract class StatefulParameter<T extends StringIndexedObject, V extends T[keyof T]> {
13
13
  readonly options: StatefulParameterOptions<V>;
14
- protected constructor(options: StatefulParameterOptions<V>);
14
+ constructor(options?: StatefulParameterOptions<V>);
15
15
  abstract refresh(desired: V | null): Promise<V | null>;
16
16
  abstract applyAdd(valueToAdd: V, plan: Plan<T>): Promise<void>;
17
17
  abstract applyModify(newValue: V, previousValue: V, allowDeletes: boolean, plan: Plan<T>): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  export class StatefulParameter {
2
2
  options;
3
- constructor(options) {
3
+ constructor(options = {}) {
4
4
  this.options = options;
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -26,7 +26,7 @@ export interface ArrayStatefulParameterOptions<V> extends StatefulParameterOptio
26
26
  export abstract class StatefulParameter<T extends StringIndexedObject, V extends T[keyof T]> {
27
27
  readonly options: StatefulParameterOptions<V>;
28
28
 
29
- protected constructor(options: StatefulParameterOptions<V>) {
29
+ constructor(options: StatefulParameterOptions<V> = {}) {
30
30
  this.options = options
31
31
  }
32
32