seamapi / edgespec

☃️ an API framework for everywhere.
MIT License
5 stars 2 forks source link

Global middleware outputs not available in `authMiddlewareMap` #52

Closed codetheweb closed 9 months ago

codetheweb commented 9 months ago

throws a type error:

Screenshot 2024-02-02 at 19 54 12
export const withDb: Middleware<{ db?: Database }, {db: Database}>

export const withLanAuth: Middleware<
{ db: Database },
  { device: StoredDevice }
> 
mxsdev commented 9 months ago

ah, yeah i know why this is, one sec