core/context
Documentation
- source: core/context.ts
Overview
Classes
Context
get()
Retrieves the value associated with the specified name from the global context.
tsstatic get(name: string): any;
Parameter Type Description namestringThe name of the context variable. Returns
- Type:
any- Description: The context value, or `undefined` if the name is not found or the value is null.
set()
Stores a value in the global context under the specified name. If the name already exists, its value is overwritten.
tsstatic set(name: string, value: any): void;
Parameter Type Description namestringThe name of the context variable. valueanyThe value to store. Returns
- Type:
void- Description:
