Skip to content

Welshman Docs / @welshman/lib / ctx

Variable: ctx ​

const ctx: Context = {}

Defined in: packages/lib/src/Context.ts:17

A global context variable for configuring libraries and applications.

In your application, you'll want to add something like the following to your types.d.ts: type MyContext = { x: number }

declare module "@welshman/lib" { interface Context { net: MyContext } }