ContextValues
Defined in: packages/repo/src/context-values.ts:4
ContextValues is a collection of context values.
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(
key):this
Defined in: packages/repo/src/context-values.ts:18
delete deletes a context value. It returns the ContextValues to allow chaining.
Parameters
Section titled “Parameters”ContextKey<unknown>
Returns
Section titled “Returns”this
get<
T>(key):T
Defined in: packages/repo/src/context-values.ts:8
get returns a context value.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”ContextKey<T>
Returns
Section titled “Returns”T
set<
T>(key,value):this
Defined in: packages/repo/src/context-values.ts:13
set sets a context value. It returns the ContextValues to allow chaining.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”ContextKey<T>
T
Returns
Section titled “Returns”this