refactor(struct): rename member types

This commit is contained in:
Simon Chan 2021-01-21 10:14:40 +08:00
parent 90dcbad660
commit 5a18c845c2
13 changed files with 85 additions and 85 deletions

View file

@ -23,14 +23,14 @@ export abstract class StructFieldValue<
/** Gets the associated `Struct` instance */
public readonly struct: StructValue;
protected value: TDefinition['valueType'];
protected value: TDefinition['TValue'];
public constructor(
definition: TDefinition,
options: Readonly<StructOptions>,
context: StructSerializationContext,
struct: StructValue,
value: TDefinition['valueType'],
value: TDefinition['TValue'],
) {
this.definition = definition;
this.options = options;
@ -51,14 +51,14 @@ export abstract class StructFieldValue<
/**
* When implemented in derived classes, returns the current value of this field
*/
public get(): TDefinition['valueType'] {
public get(): TDefinition['TValue'] {
return this.value;
}
/**
* When implemented in derived classes, update the current value of this field
*/
public set(value: TDefinition['valueType']): void {
public set(value: TDefinition['TValue']): void {
this.value = value;
}