@witchcraft/spellcraft
    Preparing search index...

    Type Alias Context<TValue>

    Context

    Like Condition, provides a way to describe contexts. How contexts look and work is up to you.

    Contexts describe the relevant application state. They are what Conditions are evaluated against.

    type Context<TValue extends object = any> = {
        type: "context";
        value: TValue;
    }

    Type Parameters

    • TValue extends object = any

      @internal Captures the type of the context value.

    Index

    Properties

    Properties

    type: "context"
    value: TValue

    Where the context object is stored.