x/value_schema/dist-deno/schemas/array.ts
1234567891011121314151617import { NullableOptions } from "../libs/publicTypes.ts";import { ArraySchema, OptionsForArray } from "../schemaClasses/ArraySchema.ts";/** schema for array or null */export function array<T>(options: OptionsForArray<T> & NullableOptions): ArraySchema<T, null>;/** schema for array */export function array<T>(options: OptionsForArray<T>): ArraySchema<T>;/** schema for array */export function array<T>(): ArraySchema<T>;/** * create schema * @param options Options * @returns schema */export function array<T>(options: OptionsForArray<T> = {}): ArraySchema<T> { return new ArraySchema<T>(options);}