Skip to content

Commit

Permalink
chore: additional linting
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
baywet committed May 20, 2024
1 parent 2ff6b29 commit bc68a80
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/abstractions/src/requestInformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class RequestInformation implements RequestInformationSetContent {
this.queryParameters = {};
this.pathParameters = {};
}
public static raw_url_key = "request-raw-url";
public static get raw_url_key() { return "request-raw-url"; }
/** The HTTP method for the request */
public httpMethod?: HttpMethod;
/** The Request Body. */
Expand Down Expand Up @@ -201,19 +201,19 @@ export class RequestInformation implements RequestInformationSetContent {
if (!value) {
writer.writeNullValue(undefined);
} else if (valueType === "boolean") {
writer.writeBooleanValue(undefined, value as any as boolean);
writer.writeBooleanValue(undefined, value as boolean);
} else if (valueType === "string") {
writer.writeStringValue(undefined, value as any as string);
writer.writeStringValue(undefined, value as string);
} else if (value instanceof Date) {
writer.writeDateValue(undefined, value as any as Date);
writer.writeDateValue(undefined, value as unknown as Date);
} else if (value instanceof DateOnly) {
writer.writeDateOnlyValue(undefined, value as any as DateOnly);
writer.writeDateOnlyValue(undefined, value as unknown as DateOnly);
} else if (value instanceof TimeOnly) {
writer.writeTimeOnlyValue(undefined, value as any as TimeOnly);
writer.writeTimeOnlyValue(undefined, value as unknown as TimeOnly);
} else if (value instanceof Duration) {
writer.writeDurationValue(undefined, value as any as Duration);
writer.writeDurationValue(undefined, value as unknown as Duration);
} else if (valueType === "number") {
writer.writeNumberValue(undefined, value as any as number);
writer.writeNumberValue(undefined, value as number);
} else if (Array.isArray(value)) {
writer.writeCollectionOfPrimitiveValues(undefined, value);
} else {
Expand Down

0 comments on commit bc68a80

Please sign in to comment.