Skip to main content
Module

x/fresh_layout/src/types.ts

Layouts for Deno Fresh
Latest
File
import { JSX, PageProps } from "./deps.ts";
// deno-lint-ignore no-explicit-anyexport type Page<Data = any> = (props?: PageProps<Data>) => JSX.Element;
// deno-lint-ignore no-explicit-anyexport type Layout<Data = any> = ( child: Page<Data>, props?: PageProps<Data>) => JSX.Element;
export interface Module { default?: Page | Layout;}
export interface RouteInfo { path: string; module: Module;}