Hono Variables shape expected on the context. Apps that consume this middleware should type their Hono instance as:
Variables
const app = new Hono<{ Variables: BtxAdmissionVariables }>(); Copy
const app = new Hono<{ Variables: BtxAdmissionVariables }>();
Then c.get('btx') is type-narrowed to { result: VerifyResult } | undefined.
c.get('btx')
{ result: VerifyResult } | undefined
Hono
Variablesshape expected on the context. Apps that consume this middleware should type their Hono instance as:Then
c.get('btx')is type-narrowed to{ result: VerifyResult } | undefined.