StaticisType guard to check if a value is an AppContext instance.
Value to check
True if value is an AppContext instance
StaticmergeMerges multiple contexts or objects into a single AppContext.
Combines values from multiple AppContext instances or plain objects. Later values overwrite earlier ones for duplicate keys. Undefined values are skipped.
AppContext instances, plain objects, or undefined values to merge
New AppContext containing merged values
Sets a value in the context.
Type of the value being stored
Key to store the value under
Value to store
This AppContext instance for chaining
Retrieves a value from the context.
Expected type of the value
Key to retrieve
The value if present, undefined otherwise
Context container for storing and retrieving runtime values.
AppContext provides a type-safe key-value store for application configuration and runtime state. Useful for passing configuration like URLs, credentials, or other runtime parameters through an application.
Example