Skip to main content
Module

x/abstruct/mod.ts>lazy

Abstract structure for JavaScript data validation
Go to Latest
function lazy
import { lazy } from "https://deno.land/x/abstruct@1.0.0-beta.12/mod.ts";

Crate validator lazily.

Examples

Example 1

import { lazy } from "https://deno.land/x/abstruct@$VERSION/validators/utils.ts";
import { type Validator } from "https://deno.land/x/abstruct@$VERSION/types.ts";
declare const v: Validator;
const validator = lazy(() => v);

Type Parameters

In
optional
RIn extends In = In