For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/classes/NumberLimitObservableValidator.md.

Class: NumberLimitObservableValidator experimental

Beta

Validates min/max limits of observable objects that support number

Implements

Constructors

Constructor

new NumberLimitObservableValidator(min, max, isInteger?): NumberLimitObservableValidator

Beta

Parameters

min

number | undefined

max

number | undefined

isInteger?

boolean

Returns

NumberLimitObservableValidator

Remarks

Constructs a new instance of the NumberLimitObservableValidator class

Properties

_isInteger?

protected optional _isInteger?: boolean

World Mutation Beta

Remarks


_max?

protected optional _max?: number

World Mutation Beta

Remarks


_min?

protected optional _min?: number

World Mutation Beta

Remarks

Methods

updateLimits()

updateLimits(min, max): void

Beta

Parameters

min

number | undefined

max

number | undefined

Returns

void


validate()

validate(newValue): number

Beta

Parameters

newValue

number

Returns

number

Implementation of

ObservableValidator.validate