@mocanvas/editor · class

ArrayOfValidator

declare class ArrayOfValidator<T> extends Validator<T[]>

An array whose every item matches item.


Methods · 3

constructor(item: Validatable<T>)
lengthGreaterThan1(): Validator<T[]>

The same array, but it must hold at least length items.

nonEmpty(): Validator<T[]>

The same array, but it must hold at least one item.


Properties · 1

readonly item: Validatable<T>

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.