1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00
budibase/packages/types/src/sdk/koa.ts

19 lines
313 B
TypeScript
Raw Normal View History

2022-07-19 08:11:52 +12:00
import { Context } from "koa"
import { User } from "../documents"
import { License } from "../sdk"
2022-07-19 08:11:52 +12:00
export interface ContextUser extends User {
globalId?: string
license: License
2022-07-19 08:11:52 +12:00
}
export interface BBContext {
2022-07-19 08:11:52 +12:00
user?: ContextUser
request: {
body: any
}
params: any
body?: any
redirect?: any
2022-07-19 08:11:52 +12:00
}