Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/live/engine/schema/lazy.ts

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
import * as live from "https://deno.land/x/live@1.56.0/engine/schema/lazy.ts";

Variables

This function is responsible for creating a lazy schema that will be used in the runtime. It will create a single flight to avoid multiple calls to the schema generation and will also cache the schema based on the revision. It uses a weak map that guarantees that when ctx is garbage collected so schema will as well.