Skip to content

Commit 60377e5

Browse files
committed
fix(core): Remove customParam and replace it with param
1 parent 7a303ad commit 60377e5

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

projects/ngqp/core/src/lib/query-param-builder.service.ts

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ export class QueryParamBuilder {
3838
return new QueryParamGroup(mappedQueryParams, extras);
3939
}
4040

41-
/**
42-
* Redirects to {@link stringParam}.
43-
* @see stringParam
44-
*/
45-
public param(opts: QueryParamOptsInput<string[]> & { multi: true }): QueryParam<string[]>;
46-
public param(opts: QueryParamOptsInput<string>): QueryParam<string>;
47-
public param(opts: QueryParamOptsInput<string | string[]>): QueryParam<string | string[]> {
48-
return this.stringParam(opts);
49-
}
50-
5141
/**
5242
* TODO Documentation
5343
*/
@@ -93,9 +83,9 @@ export class QueryParamBuilder {
9383
/**
9484
* TODO Documentation
9585
*/
96-
public customParam<T>(opts: QueryParamOpts<T[]> & { multi: true }): QueryParam<T[]>;
97-
public customParam<T>(opts: QueryParamOpts<T>): QueryParam<T>;
98-
public customParam<T>(opts: QueryParamOpts<T | T[]>): QueryParam<T | T[]> {
86+
public param<T>(opts: QueryParamOpts<T[]> & { multi: true }): QueryParam<T[]>;
87+
public param<T>(opts: QueryParamOpts<T>): QueryParam<T>;
88+
public param<T>(opts: QueryParamOpts<T | T[]>): QueryParam<T | T[]> {
9989
return new QueryParam(opts);
10090
}
10191

@@ -104,7 +94,7 @@ export class QueryParamBuilder {
10494
return queryParam;
10595
}
10696

107-
return this.param({
97+
return this.stringParam({
10898
param: queryParam,
10999
});
110100
}

0 commit comments

Comments
 (0)