react-router-define-api 0.1.3 → 0.1.4
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -45,7 +45,7 @@ type ResponseOf<H, M extends HttpMethod> = H extends Record<M, infer F> ? Handle
|
|
|
45
45
|
* };
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
type HandlerWrapper<W = unknown> = (fn: (args:
|
|
48
|
+
type HandlerWrapper<W = unknown> = (fn: (...args: any[]) => any) => (...args: any[]) => Promise<W>;
|
|
49
49
|
/** Options for defineApi */
|
|
50
50
|
interface DefineApiOptions<W = never> {
|
|
51
51
|
/** Higher-order function to wrap all method handlers (e.g. for error handling, response transformation) */
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ type ResponseOf<H, M extends HttpMethod> = H extends Record<M, infer F> ? Handle
|
|
|
45
45
|
* };
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
type HandlerWrapper<W = unknown> = (fn: (args:
|
|
48
|
+
type HandlerWrapper<W = unknown> = (fn: (...args: any[]) => any) => (...args: any[]) => Promise<W>;
|
|
49
49
|
/** Options for defineApi */
|
|
50
50
|
interface DefineApiOptions<W = never> {
|
|
51
51
|
/** Higher-order function to wrap all method handlers (e.g. for error handling, response transformation) */
|