Skip to content

Commit ff1c18a

Browse files
committed
Added default constructors for stateful-parameter.ts
1 parent 7be7aed commit ff1c18a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codify-plugin-lib",
3-
"version": "1.0.60",
3+
"version": "1.0.64",
44
"description": "",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

src/entities/stateful-parameter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface ArrayStatefulParameterOptions<V> extends StatefulParameterOptio
2626
export abstract class StatefulParameter<T extends StringIndexedObject, V extends T[keyof T]> {
2727
readonly options: StatefulParameterOptions<V>;
2828

29-
protected constructor(options: StatefulParameterOptions<V>) {
29+
constructor(options: StatefulParameterOptions<V> = {}) {
3030
this.options = options
3131
}
3232

@@ -41,7 +41,7 @@ export abstract class StatefulParameter<T extends StringIndexedObject, V extends
4141
export abstract class ArrayStatefulParameter<T extends StringIndexedObject, V> extends StatefulParameter<T, any>{
4242
options: ArrayStatefulParameterOptions<V>;
4343

44-
constructor(options: ArrayStatefulParameterOptions<V>) {
44+
constructor(options: ArrayStatefulParameterOptions<V> = {}) {
4545
super(options);
4646
this.options = options;
4747
}

0 commit comments

Comments
 (0)