Commit 1c34b9f3 authored by nanahira's avatar nanahira

optional renderer param

parent 6c959cf8
......@@ -139,9 +139,9 @@ export type KoaContext = ParameterizedContext<
>;
// eslint-disable-next-line @typescript-eslint/ban-types
export type Renderer<T = any> = (params: T) => string;
export type Renderer<T = any> = (params?: T) => string;
// eslint-disable-next-line @typescript-eslint/ban-types
export type CRenderer = (path: string, params: object) => string;
export type CRenderer = (path: string, params?: object) => string;
export interface TemplateConfig {
name: string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment