Skip to Content
Senri
API reference

/context-storage

@senrijs/senri/context-storage: Getting c from anywhere

Getting c from anywhere.

import { ... } from "@senrijs/senri/context-storage";

Functions and classes

NameWhat it does
contextStorage()Middleware that remembers c
getContext()Gets the current c (throws if there is none)
tryGetContext()Gets the current c (undefined if there is none)

Source: adapters/context-storage/index.ts

On this page