11 lines
263 B
TypeScript
11 lines
263 B
TypeScript
import { createDefine } from "fresh";
|
|
|
|
// This specifies the type of "ctx.state" which is used to share
|
|
// data among middlewares, layouts and routes.
|
|
export interface State {
|
|
shared: string;
|
|
loggedIn: boolean;
|
|
}
|
|
|
|
export const define = createDefine<State>();
|