本文へ移動
Senri
API リファレンス

/context-storage

@senrijs/senri/context-storage。どこからでも c を取る

どこからでも c を取る。

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

関数とクラス

名前すること
contextStorage()c を覚えるミドルウェア
getContext()いまの c を取る(なければ例外)
tryGetContext()いまの c を取る(なければ undefined)

ソース: adapters/context-storage/index.ts

このページの内容