chore: update dependencies

notably, eslint v9 requires big changes to the configuration. because eslint-plugin-import doesn't support eslint v9, it's disabled by now.
This commit is contained in:
Simon Chan 2024-04-13 23:02:54 +08:00
parent 5c40159bf5
commit 70a82e2af3
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
63 changed files with 763 additions and 735 deletions

View file

@ -9,11 +9,7 @@ import type { StructValue } from "./struct-value.js";
* helpful for the serialization process.
*/
export abstract class StructFieldValue<
TDefinition extends StructFieldDefinition<
any,
any,
any
> = StructFieldDefinition<any, any, any>,
TDefinition extends StructFieldDefinition<unknown, unknown, PropertyKey>,
> {
/** Gets the definition associated with this runtime value */
readonly definition: TDefinition;
@ -58,7 +54,7 @@ export abstract class StructFieldValue<
* When implemented in derived classes, reads current field's value.
*/
get(): TDefinition["TValue"] {
return this.value;
return this.value as never;
}
/**