Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 85dd7fd

Browse files
authored
fix: Expand contentTypes typing (#308)
1 parent 2acfa13 commit 85dd7fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ export type OpenApiMethod = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
99

1010
type TRPCMeta = Record<string, unknown>;
1111

12-
export type OpenApiContentType = 'application/json' | 'application/x-www-form-urlencoded';
12+
export type OpenApiContentType =
13+
| 'application/json'
14+
| 'application/x-www-form-urlencoded'
15+
// eslint-disable-next-line @typescript-eslint/ban-types
16+
| (string & {});
1317

1418
export type OpenApiMeta<TMeta = TRPCMeta> = TMeta & {
1519
openapi?: {

0 commit comments

Comments
 (0)