Interface RouteStatic<P, R>
interface RouteStatic< P = any, R extends Record<string, any> = Record<string, any>,> { beforeRouter?: (props: P) => Promise<void | R>;} Type Parameters
- P = any
- R extends Record<string, any> = Record<string, any>
Properties
Optional
beforeRouter
beforeRouter?: (props: P) => Promise<void | R> Type declaration
- (props: P): Promise<void | R>
Returns Promise<void | R>
必须返回一个 Promise
私有 beforeRouter 钩子