Skip to content

Commit e90aa0e

Browse files
committed
fix(core): Simplify type signature
Signed-off-by: Ingo Bürk <ingo.buerk@tngtech.com>
1 parent 134acd0 commit e90aa0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

projects/ngqp/core/src/lib/model/query-param.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class MultiQueryParam<T> extends AbstractQueryParam<T, T[]> implements Re
232232
export class PartitionedQueryParam<T, G extends unknown[] = unknown[]> extends AbstractQueryParamBase<T> {
233233

234234
/** @internal */
235-
public readonly queryParams: { [I in keyof G]: G[I] extends G[number] ? (QueryParam<G[I]> | MultiQueryParam<G[I]>) : G[I] };
235+
public readonly queryParams: { [I in keyof G]: QueryParam<G[I]> | MultiQueryParam<G[I]> };
236236

237237
/** @internal */
238238
public readonly partition: Partitioner<T, G>;
@@ -241,7 +241,7 @@ export class PartitionedQueryParam<T, G extends unknown[] = unknown[]> extends A
241241
public readonly reduce: Reducer<G, T>;
242242

243243
constructor(
244-
queryParams: { [I in keyof G]: G[I] extends G[number] ? (QueryParam<G[I]> | MultiQueryParam<G[I]>) : G[I] },
244+
queryParams: { [I in keyof G]: QueryParam<G[I]> | MultiQueryParam<G[I]> },
245245
opts: PartitionedQueryParamOpts<T, G>,
246246
) {
247247
super();

0 commit comments

Comments
 (0)