MCPcopy
hub / github.com/lit/lit / createContext

Function createContext

packages/context/src/test/protocol-types.ts:28–29  ·  view source on GitHub ↗
(key: unknown)

Source from the content-addressed store, hash-verified

26 * A function which creates a Context value object
27 */
28export const createContext = <ValueType>(key: unknown) =>
29 key as Context<typeof key, ValueType>;
30
31/**
32 * A callback which is provided by a context requester and is called with the value satisfying the request.

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…