server-act 1.8.1 → 1.8.2
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/index.d.cts +3 -1
- package/dist/index.d.mts +3 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -52,7 +52,9 @@ interface ActionBuilder<TParams extends ActionParams> {
|
|
|
52
52
|
_context: TParams["_context"] extends UnsetMarker ? TNewContext : Prettify<TParams["_context"] & TNewContext>;
|
|
53
53
|
}>;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Registers middleware in the action pipeline.
|
|
56
|
+
* Call `next()` to continue, optionally passing `ctx` to merge additional
|
|
57
|
+
* context for downstream middleware and the action handler.
|
|
56
58
|
*/
|
|
57
59
|
use: <TNextContext extends Record<string, unknown>>(middleware: UseMiddlewareFunction<NormalizeContext<TParams["_context"]>, TNextContext>) => ActionBuilder<{
|
|
58
60
|
_input: TParams["_input"];
|
package/dist/index.d.mts
CHANGED
|
@@ -52,7 +52,9 @@ interface ActionBuilder<TParams extends ActionParams> {
|
|
|
52
52
|
_context: TParams["_context"] extends UnsetMarker ? TNewContext : Prettify<TParams["_context"] & TNewContext>;
|
|
53
53
|
}>;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Registers middleware in the action pipeline.
|
|
56
|
+
* Call `next()` to continue, optionally passing `ctx` to merge additional
|
|
57
|
+
* context for downstream middleware and the action handler.
|
|
56
58
|
*/
|
|
57
59
|
use: <TNextContext extends Record<string, unknown>>(middleware: UseMiddlewareFunction<NormalizeContext<TParams["_context"]>, TNextContext>) => ActionBuilder<{
|
|
58
60
|
_input: TParams["_input"];
|