File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 11// Function.
22export { resultCallback } from './result-callback.func' ;
33export { typeOf } from './type-of.func' ;
4+ export { Value } from './value.class' ;
Original file line number Diff line number Diff line change 1+ /**
2+ * @description
3+ * @export
4+ * @abstract
5+ * @class Value
6+ * @template Type
7+ */
8+ export abstract class Value < Type > {
9+ /**
10+ * @description Returns the privately stored value of generic type variable `Type`.
11+ * @public
12+ * @readonly
13+ * @type {Type }
14+ */
15+ public get value ( ) {
16+ return this . #value;
17+ }
18+
19+
20+ /**
21+ * @description Privately stored value of generic type variable `Type`.
22+ * @type {Type }
23+ */
24+ #value: Type ;
25+
26+ /**
27+ * Creates an instance of `Value`.
28+ * @constructor
29+ * @param {Type } value
30+ */
31+ constructor ( value : Type ) {
32+ this . #value = value ;
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments