@bepalo/spine 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generator.js +2 -2
- package/dist/generator.js +2 -2
- package/package.json +1 -1
package/dist/cjs/generator.js
CHANGED
|
@@ -146,10 +146,10 @@ const generateStaticRoutesImporter = (router_1, routesPath_1, ...args_1) => __aw
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
return `// This is auto-generated for static importing of @bepalo/spine file-based routes
|
|
149
|
-
import { Router, Handler, HandlerRegisterPiplineOptions,
|
|
149
|
+
import { Router, Handler, HandlerRegisterPiplineOptions, Pipe } from '@bepalo/spine';
|
|
150
150
|
${imports}
|
|
151
151
|
const getOptions = <ExtendContext extends Record<string, unknown>>(
|
|
152
|
-
def: { pipe: Handler<ExtendContext> |
|
|
152
|
+
def: { pipe: Handler<ExtendContext> | Pipe<ExtendContext> } & HandlerRegisterPiplineOptions,
|
|
153
153
|
) => {
|
|
154
154
|
const { pipe, ...options } = def;
|
|
155
155
|
return options;
|
package/dist/generator.js
CHANGED
|
@@ -146,10 +146,10 @@ const generateStaticRoutesImporter = (router_1, routesPath_1, ...args_1) => __aw
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
return `// This is auto-generated for static importing of @bepalo/spine file-based routes
|
|
149
|
-
import { Router, Handler, HandlerRegisterPiplineOptions,
|
|
149
|
+
import { Router, Handler, HandlerRegisterPiplineOptions, Pipe } from '@bepalo/spine';
|
|
150
150
|
${imports}
|
|
151
151
|
const getOptions = <ExtendContext extends Record<string, unknown>>(
|
|
152
|
-
def: { pipe: Handler<ExtendContext> |
|
|
152
|
+
def: { pipe: Handler<ExtendContext> | Pipe<ExtendContext> } & HandlerRegisterPiplineOptions,
|
|
153
153
|
) => {
|
|
154
154
|
const { pipe, ...options } = def;
|
|
155
155
|
return options;
|