Skip to content

Commit

Permalink
Changed TransportOptions from type to an interface
Browse files Browse the repository at this point in the history
2720e883a828881065411cde535f53eccbb07192
  • Loading branch information
Stanislavsky34200 committed Jun 17, 2024
1 parent 93a34f9 commit b0b5dd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transport/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { WithRequiredProperties } from 'src/utils/types';
/**
* Use this type if transportOptions will be transferred to defaultSender
*/
export type TransportOptions = {
export interface TransportOptions {
/** HTTP method */
verb?: string;
/** Request headers */
Expand All @@ -24,7 +24,7 @@ export type TransportOptions = {
returnRawResponse?: boolean;
/** Needed for some transports that do not require full url */
resource?: string;
};
}

export type TransportResponse = Record<string, unknown> | string | null;

Expand Down

0 comments on commit b0b5dd3

Please sign in to comment.