blockly >FieldValidator

FieldValidator 类型

一个函数,用于在设置字段值之前验证更改。

Signature:

export type FieldValidator<T = any> = (newValue: T) => T | null | undefined;