(target: any, method: any, middleware: any)
| 11 | export const reqMap = new Map<Request, Map<any, { scope: string; req: Request }>>() |
| 12 | |
| 13 | function addDecorator(target: any, method: any, middleware: any) { |
| 14 | const existedMetas = Reflect.getMetadata(SSRSymbol, target) |
| 15 | const meta = { action: method, middleware } |
| 16 | if (existedMetas) { |
| 17 | existedMetas.push(meta) |
| 18 | } else { |
| 19 | Reflect.defineMetadata(SSRSymbol, [meta], target) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | interface SSREffectOptions<Payload> { |
| 24 | /** |