Interface IContext<S>

interface IContext<S> {
    $groupId?: number;
    api: API;
    payload: object;
    scene: SceneContext<S>;
    state: ContextDefaultState;
    subTypes: string[];
    type: string;
    upload: Upload;
    get [toStringTag](): string;
    [kSerializeData](): object;
    is(rawTypes): boolean;
    toJSON(): object;
    [key: string]: any;
}

Type Parameters

  • S extends Record<string, unknown> = Record<string, any>

Hierarchy (view full)

Indexable

[key: string]: any

Properties

$groupId?: number
api: API
payload: object
scene: SceneContext<S>

Scene control context

state: ContextDefaultState
subTypes: string[]
type: string
upload: Upload

Accessors

  • get [toStringTag](): string
  • Returns custom tag

    Returns string

Methods

  • Returns the custom data

    Returns object

  • Checks whether the context of some of these types

    Parameters

    • rawTypes: string[]

    Returns boolean

  • Returns data for JSON

    Returns object

Generated using TypeDoc