standardSchemaValidators

Variable: standardSchemaValidators

ts
const standardSchemaValidators: object;
const standardSchemaValidators: object;

Defined in: packages/form-core/src/standardSchemaValidator.ts:73

Type Declaration

validate()

ts
validate<TSource>(__namedParameters, schema): 
  | TStandardSchemaValidatorIssue<TSource>
  | undefined;
validate<TSource>(__namedParameters, schema): 
  | TStandardSchemaValidatorIssue<TSource>
  | undefined;

Type Parameters

TSource

TSource extends ValidationSource = ValidationSource

Parameters

__namedParameters

TStandardSchemaValidatorValue<unknown, TSource>

schema

StandardSchemaV1

Returns

| TStandardSchemaValidatorIssue<TSource> | undefined

validateAsync()

ts
validateAsync<TSource>(__namedParameters, schema): Promise<
  | TStandardSchemaValidatorIssue<TSource>
| undefined>;
validateAsync<TSource>(__namedParameters, schema): Promise<
  | TStandardSchemaValidatorIssue<TSource>
| undefined>;

Type Parameters

TSource

TSource extends ValidationSource

Parameters

__namedParameters

TStandardSchemaValidatorValue<unknown, TSource>

schema

StandardSchemaV1

Returns

Promise< | TStandardSchemaValidatorIssue<TSource> | undefined>