fix: improve types in FieldRegistry (#8062)

* fix: improve types in FieldRegistry

* chore: tsdoc
This commit is contained in:
Maribeth Bottorff
2024-05-10 14:14:50 -07:00
committed by GitHub
parent 54eeb85d89
commit 28ac0c4473
11 changed files with 95 additions and 24 deletions

View File

@@ -315,7 +315,7 @@ export class FieldNumber extends FieldInput<number> {
* @nocollapse
* @internal
*/
static fromJson(options: FieldNumberFromJsonConfig): FieldNumber {
static override fromJson(options: FieldNumberFromJsonConfig): FieldNumber {
// `this` might be a subclass of FieldNumber if that class doesn't override
// the static fromJson method.
return new this(