Module

x/jtd_type/mod.ts>Elements

A Novel implementation of JTD (RFC 8927) in typescript
Latest
function Elements
import { Elements } from "https://dotland.deno.dev/x/jtd_type@2.2.0/mod.ts";

Creates an elements JTD schema (Array)

Type Parameters

E extends JtdSchema
optional
O extends JtdShared = { nullable: undefined; metadata: undefined; }

Parameters

elements: E

The type of the elements of the array

optional
opts: Narrow<O>

Options for the schema