-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: type failure due to trpc-openapi
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,8 @@ | |
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]", | ||
"@nangohq/[email protected]": "patches/@[email protected]" | ||
"@nangohq/[email protected]": "patches/@[email protected]", | ||
"[email protected]": "patches/[email protected]" | ||
}, | ||
"peerDependencyRules": { | ||
"allowedVersions": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/dist/types.d.ts b/dist/types.d.ts | ||
index d93e38e020d89bef3e615c44fe687b10c8874417..956b349a0dda132bcdd7c255e8ae9946f41ccffd 100644 | ||
--- a/dist/types.d.ts | ||
+++ b/dist/types.d.ts | ||
@@ -1,7 +1,8 @@ | ||
import { Procedure, ProcedureParams, Router } from '@trpc/server'; | ||
import type { RootConfig } from '@trpc/server/dist/core/internals/config'; | ||
-import { TRPC_ERROR_CODE_KEY } from '@trpc/server/rpc'; | ||
-import type { RouterDef } from '@trpc/server/src/core/router'; | ||
+// PATCH: Courtesy of https://github.com/jlalmes/trpc-openapi/pull/411 | ||
+import type { RouterDef } from '@trpc/server/dist/core/router'; | ||
+import { TRPC_ERROR_CODE_KEY } from '@trpc/server/dist/rpc'; | ||
import { OpenAPIV3 } from 'openapi-types'; | ||
import { ZodIssue } from 'zod'; | ||
export type OpenApiMethod = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.