mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
fix: improve types in FieldRegistry (#8062)
* fix: improve types in FieldRegistry * chore: tsdoc
This commit is contained in:
committed by
GitHub
parent
54eeb85d89
commit
28ac0c4473
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user