codify-plugin-lib 1.0.63 → 1.0.64

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.
@@ -19,7 +19,7 @@ export declare abstract class StatefulParameter<T extends StringIndexedObject, V
19
19
  }
20
20
  export declare abstract class ArrayStatefulParameter<T extends StringIndexedObject, V> extends StatefulParameter<T, any> {
21
21
  options: ArrayStatefulParameterOptions<V>;
22
- constructor(options: ArrayStatefulParameterOptions<V>);
22
+ constructor(options?: ArrayStatefulParameterOptions<V>);
23
23
  applyAdd(valuesToAdd: V[], plan: Plan<T>): Promise<void>;
24
24
  applyModify(newValues: V[], previousValues: V[], allowDeletes: boolean, plan: Plan<T>): Promise<void>;
25
25
  applyRemove(valuesToRemove: V[], plan: Plan<T>): Promise<void>;
@@ -6,7 +6,7 @@ export class StatefulParameter {
6
6
  }
7
7
  export class ArrayStatefulParameter extends StatefulParameter {
8
8
  options;
9
- constructor(options) {
9
+ constructor(options = {}) {
10
10
  super(options);
11
11
  this.options = options;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -41,7 +41,7 @@ export abstract class StatefulParameter<T extends StringIndexedObject, V extends
41
41
  export abstract class ArrayStatefulParameter<T extends StringIndexedObject, V> extends StatefulParameter<T, any>{
42
42
  options: ArrayStatefulParameterOptions<V>;
43
43
 
44
- constructor(options: ArrayStatefulParameterOptions<V>) {
44
+ constructor(options: ArrayStatefulParameterOptions<V> = {}) {
45
45
  super(options);
46
46
  this.options = options;
47
47
  }