UNPKG

context-protocol

Version:

A fully-typed implementation of the context-protocol, with support for subscriptions.

8 lines (7 loc) 355 B
import type { Context, ContextRequestEvent } from "../../context.ts"; declare const testContext: ( /** Class to create context request event. */ classFactory: () => typeof ContextRequestEvent, /** Factory to create the context creator. */ createFactory: () => <ValueType>(key: unknown) => Context<typeof key, ValueType>) => void; export { testContext };