Skip to content
Myr

refactor(types): remove `Prettify` as duplicated with `Simplify` (#2914)

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

authored by Trung Dang · committed by GitHub · parent 706c2f0 · Browse files · 2 files+2 added−7 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−7 removed

  • other:+2 added−7 removed

2 files+2 added−7 removed

modified:src/utils/types.ts-4 removed
modified:src/types.ts+2 added-3 removed
11 unmodified lines
12import type {13 IfAnyThenEmptyObject,14 IsAny,15 JSONValue,16 Prettify,16 RemoveBlankRecord,17 Simplify,18 UnionToIntersection,19} from './utils/types'
1595 unmodified lines
1615 M extends string,1616 P extends string,1617 I extends Input | Input['in'],1618 RorO // Response or Output1620> = Prettify<{1619> = Simplify<{1620 [K in P]: {1621 [K2 in M as AddDollar<K2>]: Simplify<1622 {1623 input: AddParam<ExtractInput<I>, P>
44 unmodified lines
1668 : never16691670type FlattenIfIntersect<T> = T extends infer O ? { [K in keyof O]: O[K] } : never16711673export type MergeSchemaPath<OrigSchema extends Schema, SubPath extends string> = Prettify<{1672export type MergeSchemaPath<OrigSchema extends Schema, SubPath extends string> = Simplify<{1673 [P in keyof OrigSchema as MergePath<SubPath, P & string>]: {1674 [M in keyof OrigSchema[P]]: MergeEndpointParamsWithPath<OrigSchema[P][M], SubPath>1675 }1676}>
175 unmodified lines