mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
refactor(core): flatten router parameter context types (#1809)
This commit is contained in:
parent
9ead8aeef5
commit
224ba4c608
1 changed files with 3 additions and 2 deletions
|
@ -5,8 +5,9 @@ import { WithI18nContext } from '@/middleware/koa-i18next';
|
|||
import { WithLogContext } from '@/middleware/koa-log';
|
||||
import { WithUserInfoContext } from '@/middleware/koa-user-info';
|
||||
|
||||
export type AnonymousRouter = Router<unknown, WithLogContext<WithI18nContext>>;
|
||||
export type AnonymousRouter = Router<unknown, WithLogContext & WithI18nContext>;
|
||||
|
||||
export type AuthedRouter = Router<
|
||||
unknown,
|
||||
WithUserInfoContext<WithAuthContext<WithLogContext<WithI18nContext>>>
|
||||
WithUserInfoContext & WithAuthContext & WithLogContext & WithI18nContext
|
||||
>;
|
||||
|
|
Loading…
Add table
Reference in a new issue