x/value_schema/dist-deno/schemas/object.ts
123456789101112131415import { NullableOptions } from "../libs/publicTypes.ts";import { SchemaObject } from "../libs/types.ts";import { ObjectSchema, OptionsForObject } from "../schemaClasses/ObjectSchema.ts";export function object<S extends SchemaObject>(options: OptionsForObject<S> & NullableOptions): ObjectSchema<S, null>;export function object<S extends SchemaObject>(options: OptionsForObject<S>): ObjectSchema<S>;export function object(): ObjectSchema<SchemaObject>;/** * create schema * @param options Options * @returns schema */export function object<S extends SchemaObject>(options: OptionsForObject<S> = {}): ObjectSchema<S> { return new ObjectSchema(options);}