mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
fix: export Field-related types from Blockly (#6877)
* chore: re-exported Field config types from Blockly * mark `@internal` types, export field error, and add validator comments
This commit is contained in:
committed by
GitHub
parent
3a7ac3be1b
commit
9e5bfc243e
@@ -48,8 +48,6 @@ import type {WorkspaceSvg} from './workspace_svg.js';
|
||||
* A function that is called to validate changes to the field's value before
|
||||
* they are set.
|
||||
*
|
||||
* **NOTE:** Validation returns one option between `T`, `null`, and `undefined`.
|
||||
*
|
||||
* @see {@link https://developers.google.com/blockly/guides/create-custom-blocks/fields/validators#return_values}
|
||||
* @param newValue The value to be validated.
|
||||
* @returns One of three instructions for setting the new value: `T`, `null`,
|
||||
@@ -1315,6 +1313,8 @@ export interface FieldConfig {
|
||||
/**
|
||||
* For use by Field and descendants of Field. Constructors can change
|
||||
* in descendants, though they should contain all of Field's prototype methods.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export type FieldProto = Pick<typeof Field, 'prototype'>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user