server-act 1.2.1 → 1.2.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.mts CHANGED
@@ -18,17 +18,17 @@ interface ActionBuilder<TParams extends ActionParams> {
18
18
  /**
19
19
  * Middleware allows you to run code before the action, its return value will pass as context to the action.
20
20
  */
21
- middleware: <TContext>(middleware: () => Promise<TContext> | TContext) => ActionBuilder<{
21
+ middleware: <TContext>(middleware: () => Promise<TContext> | TContext) => Omit<ActionBuilder<{
22
22
  _input: TParams["_input"];
23
23
  _context: TContext;
24
- }>;
24
+ }>, "middleware">;
25
25
  /**
26
26
  * Input validation for the action.
27
27
  */
28
- input: <TParser extends z.ZodType>(input: TParser) => ActionBuilder<{
28
+ input: <TParser extends z.ZodType>(input: TParser) => Omit<ActionBuilder<{
29
29
  _input: TParser;
30
30
  _context: TParams["_context"];
31
- }>;
31
+ }>, "input">;
32
32
  /**
33
33
  * Create an action.
34
34
  */
package/dist/index.d.ts CHANGED
@@ -18,17 +18,17 @@ interface ActionBuilder<TParams extends ActionParams> {
18
18
  /**
19
19
  * Middleware allows you to run code before the action, its return value will pass as context to the action.
20
20
  */
21
- middleware: <TContext>(middleware: () => Promise<TContext> | TContext) => ActionBuilder<{
21
+ middleware: <TContext>(middleware: () => Promise<TContext> | TContext) => Omit<ActionBuilder<{
22
22
  _input: TParams["_input"];
23
23
  _context: TContext;
24
- }>;
24
+ }>, "middleware">;
25
25
  /**
26
26
  * Input validation for the action.
27
27
  */
28
- input: <TParser extends z.ZodType>(input: TParser) => ActionBuilder<{
28
+ input: <TParser extends z.ZodType>(input: TParser) => Omit<ActionBuilder<{
29
29
  _input: TParser;
30
30
  _context: TParams["_context"];
31
- }>;
31
+ }>, "input">;
32
32
  /**
33
33
  * Create an action.
34
34
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "server-act",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "homepage": "https://github.com/chungweileong94/server-act#readme",
5
5
  "author": "chungweileong94",
6
6
  "license": "MIT",