types: fix circular import

closes #1746
This commit is contained in:
Rajeh Taher
2025-09-07 14:47:19 +03:00
parent 538d3e4da7
commit 076daae89d
4 changed files with 13 additions and 7 deletions
+1 -2
View File
@@ -10,13 +10,12 @@ import { join } from 'path'
import { Readable, Transform } from 'stream'
import { URL } from 'url'
import { proto } from '../../WAProto/index.js'
import { DEFAULT_ORIGIN, MEDIA_HKDF_KEY_MAPPING, MEDIA_PATH_MAP } from '../Defaults'
import { DEFAULT_ORIGIN, MEDIA_HKDF_KEY_MAPPING, MEDIA_PATH_MAP, type MediaType } from '../Defaults'
import type {
BaileysEventMap,
DownloadableMessage,
MediaConnInfo,
MediaDecryptionKeyInfo,
MediaType,
MessageType,
SocketConfig,
WAGenericMediaMessage,
+8 -2
View File
@@ -4,12 +4,18 @@ import { randomBytes } from 'crypto'
import { promises as fs } from 'fs'
import { type Transform } from 'stream'
import { proto } from '../../WAProto/index.js'
import { CALL_AUDIO_PREFIX, CALL_VIDEO_PREFIX, MEDIA_KEYS, URL_REGEX, WA_DEFAULT_EPHEMERAL } from '../Defaults'
import {
CALL_AUDIO_PREFIX,
CALL_VIDEO_PREFIX,
MEDIA_KEYS,
type MediaType,
URL_REGEX,
WA_DEFAULT_EPHEMERAL
} from '../Defaults'
import type {
AnyMediaMessageContent,
AnyMessageContent,
DownloadableMessage,
MediaType,
MessageContentGenerationOptions,
MessageGenerationOptions,
MessageGenerationOptionsFromContent,