chore: add export * from core to client

This commit is contained in:
alina 🌸 2023-09-24 04:10:18 +03:00
parent 7ff433ed0a
commit 5dcd965934
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
7 changed files with 15 additions and 17 deletions

View file

@ -2,7 +2,15 @@
/* THIS FILE WAS AUTO-GENERATED */
import { Readable } from 'stream'
import { BaseTelegramClient, BaseTelegramClientOptions, MaybeArray, MaybeAsync, tl } from '@mtcute/core'
import {
BaseTelegramClient,
BaseTelegramClientOptions,
MaybeArray,
MaybeAsync,
PartialExcept,
PartialOnly,
tl,
} from '@mtcute/core'
import { AsyncLock, ConditionVariable, Deque, Logger, SortedLinkedList } from '@mtcute/core/utils'
import { tdFileId } from '@mtcute/file-id'
@ -219,8 +227,6 @@ import {
MessageMedia,
MessageReactions,
ParsedUpdate,
PartialExcept,
PartialOnly,
PeerReaction,
PeersIndex,
Photo,

View file

@ -3,4 +3,4 @@ export * from './client'
export * from './types'
export * from './utils/peer-utils'
export { createDummyUpdate } from './utils/updates-utils'
export { assertNever, JsonFileStorage, LocalstorageStorage, MemoryStorage, tl } from '@mtcute/core'
export * from '@mtcute/core'

View file

@ -3,7 +3,7 @@
import { Readable } from 'stream'
// @copy
import { MaybeArray, MaybeAsync } from '@mtcute/core'
import { MaybeArray, MaybeAsync, PartialExcept, PartialOnly } from '@mtcute/core'
// @copy
import { AsyncLock, ConditionVariable, Deque, Logger, SortedLinkedList } from '@mtcute/core/utils'
// @copy
@ -46,8 +46,6 @@ import {
MessageMedia,
MessageReactions,
ParsedUpdate,
PartialExcept,
PartialOnly,
PeerReaction,
PeersIndex,
Photo,

View file

@ -1,8 +1,8 @@
/* eslint-disable no-console */
import { MtArgumentError, tl } from '@mtcute/core'
import { MaybeAsync, MtArgumentError, tl } from '@mtcute/core'
import { TelegramClient } from '../../client'
import { MaybeAsync, MaybeDynamic, SentCode, TermsOfService, User } from '../../types'
import { MaybeDynamic, SentCode, TermsOfService, User } from '../../types'
import { normalizePhoneNumber, resolveMaybeDynamic } from '../../utils/misc-utils'
/**

View file

@ -11,4 +11,3 @@ export * from './parser'
export * from './peers'
export * from './updates'
export { ArrayWithTotal, MaybeDynamic } from './utils'
export { MaybeAsync, PartialExcept, PartialOnly } from '@mtcute/core'

View file

@ -12,11 +12,6 @@ export * from './peers-index'
export * from './typing-status'
export * from './user'
/**
* Peer types that have one-to-one relation to tl.Peer* types.
*/
export type BasicPeerType = 'user' | 'chat' | 'channel'
/**
* More extensive peer types, that differentiate between
* users and bots, channels and supergroups.

View file

@ -1,7 +1,7 @@
import { getBarePeerId, MtUnsupportedError, tl, toggleChannelIdMark } from '@mtcute/core'
import { BasicPeerType, getBarePeerId, MtUnsupportedError, tl, toggleChannelIdMark } from '@mtcute/core'
import { TelegramClient } from '../../client'
import { BasicPeerType, Chat, TypingStatus, User } from '../'
import { Chat, TypingStatus, User } from '../'
import { makeInspectable } from '../utils'
/**