import { type Context } from "https://deno.land/x/effection@4.0.0-alpha.1/lib/mod.ts";
Context
defines a value which is in effect for a given scope which is an
(action, resource, call, or spawn).
Unless a context value is defined for a particular scope, it will inherit its value from its parent scope.
Properties
optional
defaultValue: TThe value returned by this context when it is not present on a scop.e
Methods
Set the value of a context on the current scope. It will not effect the value of its containing scope and will only be visible by this scope and its children.
delete(): Operation<boolean>
Remove a context value from the current scope. This will only effect the current scope and not its parent value.