Skip to content
Myr

fix(types): fix comment (#2278)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`c.jsonT` is removed

authored by Shotaro Nakamura · committed by GitHub · parent d4db451 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:deno_dist/types.ts+1 added-1 removed
1669 unmodified lines
1670////////////////////////////////////////16711672export type TypedResponse<T = unknown> = {1673 data: T1674 format: 'json' // Currently, support only `json` with `c.jsonT()`1674 format: 'json' // Currently, support only `json` with `c.json()`1675}16761677type ExtractResponseData<T> = T extends Promise<infer T2>1678 ? T2 extends TypedResponse<infer U>
93 unmodified lines
modified:src/types.ts+1 added-1 removed
1669 unmodified lines
1670////////////////////////////////////////16711672export type TypedResponse<T = unknown> = {1673 data: T1674 format: 'json' // Currently, support only `json` with `c.jsonT()`1674 format: 'json' // Currently, support only `json` with `c.json()`1675}16761677type ExtractResponseData<T> = T extends Promise<infer T2>1678 ? T2 extends TypedResponse<infer U>
93 unmodified lines