mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
refactor(struct): rename member types
This commit is contained in:
parent
90dcbad660
commit
5a18c845c2
13 changed files with 85 additions and 85 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue