Skip to content

Commit

Permalink
Type errorCode as possibly undefined (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Oct 11, 2023
1 parent 85c2c2c commit 4bcb37e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/management/management-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ResponseError } from '../lib/index.js';
import { TelemetryMiddleware } from '../lib/middleware/telemetry-middleware.js';

interface ManagementApiErrorResponse {
errorCode: string;
errorCode: string | undefined;
error: string;
message: string;
statusCode: number;
Expand All @@ -17,7 +17,7 @@ interface ManagementApiErrorResponse {
export class ManagementApiError extends Error {
override name = 'ManagementApiError' as const;
constructor(
public errorCode: string,
public errorCode: string | undefined,
public error: string,
public statusCode: number,
public body: string,
Expand Down

0 comments on commit 4bcb37e

Please sign in to comment.