10 lines
242 B
TypeScript
10 lines
242 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;
|
|
}
|
|
|
|
export const define = createDefine<State>();
|