docs: Export missing Plugin types to fix broken links (#1319)
This commit is contained in:
@@ -24,6 +24,11 @@ export type {
|
||||
MiddlewareHandlerContext,
|
||||
PageProps,
|
||||
Plugin,
|
||||
PluginAsyncRenderContext,
|
||||
PluginAsyncRenderFunction,
|
||||
PluginRenderContext,
|
||||
PluginRenderFunction,
|
||||
PluginRenderFunctionResult,
|
||||
PluginRenderResult,
|
||||
PluginRenderScripts,
|
||||
PluginRenderStyleTag,
|
||||
|
||||
@@ -197,6 +197,7 @@ export interface ErrorHandlerContext<State = Record<string, unknown>>
|
||||
render: () => Response | Promise<Response>;
|
||||
state: State;
|
||||
}
|
||||
|
||||
export type ErrorHandler = (
|
||||
req: Request,
|
||||
ctx: ErrorHandlerContext,
|
||||
@@ -303,6 +304,7 @@ export interface Plugin {
|
||||
export interface PluginRenderContext {
|
||||
render: PluginRenderFunction;
|
||||
}
|
||||
|
||||
export interface PluginAsyncRenderContext {
|
||||
renderAsync: PluginAsyncRenderFunction;
|
||||
}
|
||||
@@ -335,6 +337,7 @@ export interface PluginRenderScripts {
|
||||
}
|
||||
|
||||
export type PluginRenderFunction = () => PluginRenderFunctionResult;
|
||||
|
||||
export type PluginAsyncRenderFunction = () =>
|
||||
| PluginRenderFunctionResult
|
||||
| Promise<PluginRenderFunctionResult>;
|
||||
|
||||
Reference in New Issue
Block a user