next-zero-rpc 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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -388,7 +388,7 @@ Type-safe fetch wrapper that returns Go-style `[data, error]` tuples.
388
388
  - `Path` — validated against `KnownRoutes` at compile time
389
389
  - `Method` — restricted to only the HTTP methods exported by the matched route
390
390
 
391
- **Returns:** `Promise<[SuccessType, null] | [null, ErrorType | ApiFetchError]>`
391
+ **Returns:** `Promise<[SuccessType, null] | [null, ErrorType | ApiErrorPayload<"system:unknown-error">]>`
392
392
 
393
393
  - **Success:** `[data, null]` where `data` is inferred from the route handler's `createApiSuccess` calls
394
394
  - **Error:** `[null, error]` where `error.code` is narrowed to only the error codes used in that route's `createApiError` calls, plus `"system:unknown-error"` as a fallback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-zero-rpc",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Type-safe fetch for Next.js — zero runtime, zero config, zero dependencies.",
5
5
  "keywords": [
6
6
  "nextjs",