Skip to content

Commit

Permalink
fix(types): fix comment (#2278)
Browse files Browse the repository at this point in the history
`c.jsonT` is removed
  • Loading branch information
nakasyou authored Feb 27, 2024
1 parent d4db451 commit d7b1fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno_dist/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ export type MergePath<A extends string, B extends string> = A extends ''

export type TypedResponse<T = unknown> = {
data: T
format: 'json' // Currently, support only `json` with `c.jsonT()`
format: 'json' // Currently, support only `json` with `c.json()`
}

type ExtractResponseData<T> = T extends Promise<infer T2>
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ export type MergePath<A extends string, B extends string> = A extends ''

export type TypedResponse<T = unknown> = {
data: T
format: 'json' // Currently, support only `json` with `c.jsonT()`
format: 'json' // Currently, support only `json` with `c.json()`
}

type ExtractResponseData<T> = T extends Promise<infer T2>
Expand Down

0 comments on commit d7b1fe8

Please sign in to comment.