GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Signal Form Schema Validation

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — validateStandardSchema • Angular

API

function validateStandardSchema<
  TSchema,
  TModel extends IgnoreUnknownProperties<TSchema>,
>(
  path: SchemaPath<TModel> &
    ([TModel] extends [AbstractControl]
      ? CompatSchemaPath<TModel, Root>
      : SchemaPath<TModel, 1, Root>) &
    ([TModel] extends [AbstractControl]
      ? unknown
      : [TModel] extends [readonly any[]]
        ? unknown
        : TModel extends Record<string, any>
          ? { [K in keyof TModel]: MaybeSchemaPathTree<TModel[K], Child> }
          : unknown),
  schema: any,
): void;
@parampathSchemaPath<TModel> & ([TModel] extends [AbstractControl] ? CompatSchemaPath<TModel, Root> : SchemaPath<TModel, 1, Root>) & ([TModel] extends [AbstractControl] ? unknown : [TModel] extends [readonly any[]] ? unknown : TModel extends Record<string, any> ? { [K in keyof TModel]: MaybeSchemaPathTree<TModel[K], Child>; } : unknown)

The FieldPath to the field to validate.

@paramschemaany

The standard schema compatible validator to use for validation, or a LogicFn that returns the schema.

@returnsvoid

Description

Validates a field using a StandardSchemaV1 compatible validator (e.g. a Zod validator).

See https://github.com/standard-schema/standard-schema for more about standard schema.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.