Function validate

  • Parameters

    • validator: ValidateFunction<unknown>
    • data: any

    Returns ErrorObject<string, Record<string, any>, unknown>[]