1
0
mirror of synced 2025-12-19 18:11:23 -05:00
Files
blitz/examples/static/types.ts
Simon Knott bfe3f90d2a Add blitz export command (#2043)
* Proxy "blitz export" to "next export" (minor)

* Add "static" example

* Fix manifest missing

* fix tsc error

* Fix version of Blitz for static example

* Use preconstructs monorepo build tooling

* Add type that static example needs for compilation

* Run "next export" on ".next", not on ".blitz/build/"

* Remove forgotten console.log o.O

* Don't change type of nextBuild[manifest]

* Update static example Blitz version

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-16 14:28:32 -04:00

17 lines
366 B
TypeScript

import { DefaultCtx, SessionContext } from "blitz"
// Note: You should switch to Postgres and then use a DB enum for role type
export type Role = "ADMIN" | "USER"
declare module "blitz" {
export interface Ctx extends DefaultCtx {
session: SessionContext
}
export interface Session {
PublicData: {
userId: string
roles: Role[]
}
}
}