We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setValue()
1 parent 18f07d6 commit 44a9799Copy full SHA for 44a9799
src/lib/value.class.ts
@@ -1,5 +1,5 @@
1
/**
2
- * @description
+ * @description The class to manage the value of generic type variable `Type`.
3
* @export
4
* @abstract
5
* @class Value
@@ -24,11 +24,21 @@ export abstract class Value<Type> {
24
#value: Type;
25
26
27
- * Creates an instance of `Value`.
+ * Creates an instance of child class.
28
* @constructor
29
- * @param {Type} value
+ * @param {Type} value The value of generic type variable `Type`.
30
*/
31
constructor(value: Type) {
32
this.#value = value;
33
}
34
-}
+
35
+ /**
36
+ * @description Sets the value of generic type variable `Type`.
37
+ * @protected
38
+ * @returns {this}
39
+ */
40
+ protected setValue(value: Type) {
41
+ this.#value = value;
42
+ return this;
43
+ }
44
+}
0 commit comments