Skip to content
Myr

fix(types): fix `AddDollar` (#1373)

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

authored by Yusuke Wada · committed by GitHub · parent 6400bbc · 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
319 unmodified lines
320////////////////////////////////////////321322export type ToSchema<M extends string, P extends string, I extends Input['in'], O> = {323 [K in P]: {324 [K2 in M as AddDollar<string & K2>]: {324 [K2 in M as AddDollar<K2>]: {325 input: unknown extends I ? AddParam<{}, P> : AddParam<I, P>326 output: unknown extends O ? {} : O327 }328 }
129 unmodified lines
modified:src/types.ts+1 added-1 removed
319 unmodified lines
320////////////////////////////////////////321322export type ToSchema<M extends string, P extends string, I extends Input['in'], O> = {323 [K in P]: {324 [K2 in M as AddDollar<string & K2>]: {324 [K2 in M as AddDollar<K2>]: {325 input: unknown extends I ? AddParam<{}, P> : AddParam<I, P>326 output: unknown extends O ? {} : O327 }328 }
129 unmodified lines