Skip to content

Commit 0ed8023

Browse files
authored
Merge pull request #5 from typescript-package/develop
v1.2.0
2 parents c068d68 + 562832a commit 0ed8023

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typescript-package/core",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"author": "wwwdev.io <[email protected]>",
55
"description": "A TypeScript library with features used across other `typescript-package` libraries.",
66
"license": "MIT",
@@ -29,6 +29,10 @@
2929
{
3030
"type": "individual",
3131
"url": "https://checkout.revolut.com/pay/048b10a3-0e10-42c8-a917-e3e9cb4c8e29"
32+
},
33+
{
34+
"type": "stripe",
35+
"url": "https://donate.stripe.com/dR614hfDZcJE3wAcMM"
3236
}
3337
],
3438
"sideEffects": false

src/lib/value.class.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @description
2+
* @description The class to manage the value of generic type variable `Type`.
33
* @export
44
* @abstract
55
* @class Value
@@ -24,11 +24,21 @@ export abstract class Value<Type> {
2424
#value: Type;
2525

2626
/**
27-
* Creates an instance of `Value`.
27+
* Creates an instance of child class.
2828
* @constructor
29-
* @param {Type} value
29+
* @param {Type} value The value of generic type variable `Type`.
3030
*/
3131
constructor(value: Type) {
3232
this.#value = value;
3333
}
34-
}
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+
}

ts-package-barcode-logo-512.png

13.7 KB
Loading

0 commit comments

Comments
 (0)