API リファレンス
/context-storage
@senrijs/senri/context-storage。どこからでも c を取る
どこからでも c を取る。
import { ... } from "@senrijs/senri/context-storage";関数とクラス
| 名前 | すること |
|---|---|
contextStorage() | c を覚えるミドルウェア |
getContext() | いまの c を取る(なければ例外) |
tryGetContext() | いまの c を取る(なければ undefined) |