We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69a5ba commit 66de43cCopy full SHA for 66de43c
src/core/BaseService.ts
@@ -200,6 +200,8 @@ class BaseService {
200
return this
201
}
202
203
+ setParameter(parameter: string): this
204
+ setParameter(parameter: string, value?: any): this
205
setParameter(parameter: string, value?: any): this {
206
if (!value) {
207
const options: IParseOptions = Object.assign({}, this.$parsedQs, {
@@ -214,8 +216,10 @@ class BaseService {
214
216
215
217
218
219
+ removeParameters(): this
220
+ removeParameters(parameters: any[]): this
221
removeParameters(parameters = [] as any[]): this {
- if (!parameters.length) {
222
+ if (!parameters || !parameters.length) {
223
this.parameters = []
224
} else {
225
for (const parameter of parameters) {
0 commit comments