Skip to content

Commit 1679755

Browse files
refactor: keep the scheduled message API error type internal
ScheduledMessageAPIError is only used by getScheduledMessageErrorReason, so it no longer needs to be part of the public types.
1 parent 7024e04 commit 1679755

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/scheduledMessages/errors.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ErrorFromResponse, ScheduledMessageErrorReason } from '../types';
22
import type { APIErrorResponse } from '../types';
3-
import type { ScheduledMessageAPIError } from './types';
3+
4+
type ScheduledMessageAPIError = ErrorFromResponse<APIErrorResponse>;
45

56
const NOT_FOUND_STATUS = 404;
67

‎src/scheduledMessages/types.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import type { APIErrorResponse, ErrorFromResponse } from '../types';
2-
3-
export type ScheduledMessageAPIError = ErrorFromResponse<APIErrorResponse>;
4-
51
export type ScheduledMessageLimits = {
62
maxLeadTimeSeconds: number;
73
maxPerChannel: number;

0 commit comments

Comments
 (0)