We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aa295d commit d78a9cbCopy full SHA for d78a9cb
packages/abstractions/src/requestInformation.ts
@@ -267,7 +267,7 @@ export class RequestInformation implements RequestInformationSetContent {
267
}
268
269
if (typeof v === "boolean" || typeof v === "number" || typeof v === "string" || Array.isArray(v)) this.queryParameters[key] = v;
270
- else if (v instanceof DateOnly || v instanceof TimeOnly) this.queryParameters[key] = v.toString();
+ else if (v instanceof DateOnly || v instanceof TimeOnly || v instanceof Duration) this.queryParameters[key] = v.toString();
271
else if (v instanceof Date) this.queryParameters[key] = v.toISOString();
272
else if (v === undefined) this.queryParameters[key] = undefined;
273
});
0 commit comments