Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/schemas/union/utils/index.ts>_subIssues

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function _subIssues
import { _subIssues } from "https://deno.land/x/valibot@v0.37.0/src/schemas/union/utils/index.ts";

Returns the sub issues of the provided datasets for the union issue.

Parameters

datasets: Dataset<unknown, BaseIssue<unknown>>[] | undefined

The datasets.

Returns

[BaseIssue<unknown>, ...BaseIssue<unknown>[]] | undefined

The sub issues.