MCPcopy Create free account
hub / github.com/TanStack/form / getAsyncValidatorArray

Function getAsyncValidatorArray

packages/form-core/src/utils.ts:307–412  ·  view source on GitHub ↗
(
  cause: ValidationCause,
  options: AsyncValidatorArrayPartialOptions<T> & {
    validationLogic?: any
    form?: any
  },
)

Source from the content-addressed store, hash-verified

305 * @private
306 */
307export function getAsyncValidatorArray<T>(
308 cause: ValidationCause,
309 options: AsyncValidatorArrayPartialOptions<T> & {
310 validationLogic?: any
311 form?: any
312 },
313): T extends FieldValidators<
314 any,
315 any,
316 any,
317 any,
318 any,
319 any,
320 any,
321 any,
322 any,
323 any,
324 any,
325 any
326>
327 ? Array<
328 AsyncValidator<
329 | T['onChangeAsync']
330 | T['onBlurAsync']
331 | T['onSubmitAsync']
332 | T['onDynamicAsync']
333 >
334 >
335 : T extends FormValidators<any, any, any, any, any, any, any, any, any, any>
336 ? Array<
337 AsyncValidator<
338 | T['onChangeAsync']
339 | T['onBlurAsync']
340 | T['onSubmitAsync']
341 | T['onDynamicAsync']
342 >
343 >
344 : never {
345 const { asyncDebounceMs } = options
346 const {
347 onBlurAsyncDebounceMs,
348 onChangeAsyncDebounceMs,
349 onDynamicAsyncDebounceMs,
350 } = (options.validators || {}) as
351 | FieldValidators<
352 any,
353 any,
354 any,
355 any,
356 any,
357 any,
358 any,
359 any,
360 any,
361 any,
362 any,
363 any
364 >

Callers 2

FormApiClass · 0.90
FieldApiClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected