diff --git a/packages/misskey-js/src/index.ts b/packages/misskey-js/src/index.ts index 0f8ac68b3b..cf267f3281 100644 --- a/packages/misskey-js/src/index.ts +++ b/packages/misskey-js/src/index.ts @@ -1,19 +1,6 @@ -import { type Endpoints } from './api.types.js'; import Stream, { Connection } from './streaming.js'; -import { type Channels } from './streaming.types.js'; -import { type Acct } from './acct.js'; -import type { StreamEvents, IStream, IChannelConnection } from './streaming.js'; import * as consts from './consts.js'; -export type { - Endpoints, - Channels, - Acct, - StreamEvents, - IStream, - IChannelConnection, -}; - export { Stream, Connection as ChannelConnection, @@ -36,3 +23,19 @@ import * as entities from './entities.js'; import * as acct from './acct.js'; import * as note from './note.js'; export { api, entities, acct, note }; + +//#region standalone types +import type { Endpoints } from './api.types.js'; +import type { StreamEvents, IStream, IChannelConnection } from './streaming.js'; +import type { Channels } from './streaming.types.js'; +import type { Acct } from './acct.js'; + +export type { + Endpoints, + Channels, + Acct, + StreamEvents, + IStream, + IChannelConnection, +}; +//#endregion