import type { Schema } from "../_schema.js" import { SchemaLazy } from "../_schema.js" import type { DefaultSchema } from "./withDefaults.js" import { withDefaults } from "./withDefaults.js" export function lazy( self: () => Schema ): DefaultSchema { return withDefaults(new SchemaLazy(self)) }