Type Alias Config<param>

Config<param>: Config<param> & Config<param> & {
    advice_global_variable: GetDefault<param, "AdviceGlobalVariable", string>;
    initial_state: GetDefault<param, "InitialState", Json>;
    pointcut: Pointcut<param>;
}

Type Parameters

  • param extends Partial<Atom> & {
        AdviceGlobalVariable?: string;
        FilePath?: unknown;
        InitialState?: Json;
        JavaScriptIdentifier?: string;
        NodeHash?: string | number;
    }

Type declaration

  • advice_global_variable: GetDefault<param, "AdviceGlobalVariable", string>

    The global variable that refers to the advice object for standard weaving. Make sure it does not clash with other global variables.

    "_ARAN_ADVICE_"

  • initial_state: GetDefault<param, "InitialState", Json>

    The initial state passed to advice functions. It will be cloned with JSON serialization.

    null

  • pointcut: Pointcut<param>

    The pointcut for the standard weaving API.

    []