mirror of
https://github.com/honojs/hono.git
synced 2024-11-29 17:46:30 +01:00
fix(types): fix AddDollar
(#1373)
This commit is contained in:
parent
6400bbc14c
commit
1eb4a1dcdc
@ -321,7 +321,7 @@ type ExtractKey<S> = S extends Record<infer Key, unknown>
|
||||
|
||||
export type ToSchema<M extends string, P extends string, I extends Input['in'], O> = {
|
||||
[K in P]: {
|
||||
[K2 in M as AddDollar<string & K2>]: {
|
||||
[K2 in M as AddDollar<K2>]: {
|
||||
input: unknown extends I ? AddParam<{}, P> : AddParam<I, P>
|
||||
output: unknown extends O ? {} : O
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ type ExtractKey<S> = S extends Record<infer Key, unknown>
|
||||
|
||||
export type ToSchema<M extends string, P extends string, I extends Input['in'], O> = {
|
||||
[K in P]: {
|
||||
[K2 in M as AddDollar<string & K2>]: {
|
||||
[K2 in M as AddDollar<K2>]: {
|
||||
input: unknown extends I ? AddParam<{}, P> : AddParam<I, P>
|
||||
output: unknown extends O ? {} : O
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user