Skip to content

Commit

Permalink
fix: type failure due to trpc-openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Oct 22, 2023
1 parent 891da91 commit fa3fc3a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
15 changes: 15 additions & 0 deletions patches/[email protected]
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';
10 changes: 7 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa3fc3a

Please sign in to comment.