AxContext
Interface: AxContext
Methods
deleteValue()
deleteValue(
key
):AxContext
Deletes a value associated with a key from the context. Returns a new context that inherits from the current context but does not contain the value for the specified key.
Parameters
• key: symbol
The symbol key for which to clear the value.
Returns
A new Context instance without the specified key.
Defined in
getValue()
getValue(
key
):unknown
Retrieves a value from the context using a symbol as the key.
Parameters
• key: symbol
The symbol key which identifies a context value.
Returns
unknown
The value associated with the key, if any; otherwise, undefined.
Defined in
setValue()
setValue(
key
,value
):AxContext
Sets a value in the context for the specified key. Returns a new context that inherits from the current context with the new key-value pair added.
Parameters
• key: symbol
The symbol key for which to set the value.
• value: unknown
The value to set for the given key.
Returns
A new Context instance with the updated key-value pair.