Skip to main content
Module

x/blocks/deps.ts>Context

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
interface Context
import { type Context } from "https://deno.land/x/blocks@1.48.7/deps.ts";

Methods

getValue(key: symbol): unknown

Get a value from the context.

setValue(key: symbol, value: unknown): Context

Create a new context which inherits from this context and has the given key set to the given value.

deleteValue(key: symbol): Context

Return a new context which inherits from this context but does not contain a value for the given key.