14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
/**
|
|
* Copyright (c) 2025 misties
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
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>();
|