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

@@ -73,7 +73,9 @@ export class FieldTextInput extends FieldInput<string> {
* @nocollapse
* @internal
*/
static fromJson(options: FieldTextInputFromJsonConfig): FieldTextInput {
static override fromJson(
options: FieldTextInputFromJsonConfig,
): FieldTextInput {
const text = parsing.replaceMessageReferences(options.text);
// `this` might be a subclass of FieldTextInput if that class doesn't
// override the static fromJson method.