use export* syntax to clean ts index.ts
parent
823bc4216e
commit
798efd8e00
@ -0,0 +1,5 @@
|
||||
export * from './ClosedGroupMessage';
|
||||
export * from './DataMessage';
|
||||
export * from './DeviceUnlinkMessage';
|
||||
export * from './GroupInvitationMessage';
|
||||
export * from './RegularMessage';
|
@ -0,0 +1,9 @@
|
||||
export * from './ContentMessage';
|
||||
export * from './EndSessionMessage';
|
||||
export * from './SessionEstablishedMessage';
|
||||
export * from './SessionResetMessage';
|
||||
export * from './TypingMessage';
|
||||
export * from './data';
|
||||
export * from './link';
|
||||
export * from './receipt';
|
||||
export * from './sync';
|
@ -0,0 +1,3 @@
|
||||
export * from './DeviceLinkGrantMessage';
|
||||
export * from './DeviceLinkRequestMessage';
|
||||
|
@ -0,0 +1,5 @@
|
||||
export * from './ReceiptMessage';
|
||||
export * from './DeliveryReceiptMessage';
|
||||
export * from './ReadReceiptMessage';
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
import * as SyncMessage from './SyncMessage';
|
||||
|
||||
|
||||
export {
|
||||
SyncMessage,
|
||||
};
|
@ -1,46 +1,8 @@
|
||||
import { Message } from './Message';
|
||||
import { ContentMessage } from './content/ContentMessage';
|
||||
import { DataMessage } from './content/data/DataMessage';
|
||||
import { OpenGroupMessage } from './OpenGroupMessage';
|
||||
import { SyncMessage } from './content/sync/SyncMessage';
|
||||
import { TypingMessage } from './content/TypingMessage';
|
||||
import { ReceiptMessage } from './content/receipt/ReceiptMessage';
|
||||
import { ClosedGroupMessage } from './content/data/ClosedGroupMessage';
|
||||
import { DeviceUnlinkMessage } from './content/data/DeviceUnlinkMessage';
|
||||
import { GroupInvitationMessage } from './content/data/GroupInvitationMessage';
|
||||
import { RegularMessage } from './content/data/RegularMessage';
|
||||
import { SessionResetMessage } from './content/SessionResetMessage';
|
||||
import { SessionEstablishedMessage } from './content/SessionEstablishedMessage';
|
||||
import { EndSessionMessage } from './content/EndSessionMessage';
|
||||
import { DeviceLinkRequestMessage } from './content/link/DeviceLinkRequestMessage';
|
||||
import { DeviceLinkGrantMessage } from './content/link/DeviceLinkGrantMessage';
|
||||
import { ReadReceiptMessage } from './content/receipt/ReadReceiptMessage';
|
||||
import { DeliveryReceiptMessage } from './content/receipt/DeliveryReceiptMessage';
|
||||
|
||||
export * from './content/';
|
||||
export {
|
||||
Message,
|
||||
OpenGroupMessage,
|
||||
|
||||
ContentMessage,
|
||||
|
||||
// children of ContentMessage
|
||||
DeviceLinkRequestMessage,
|
||||
DeviceLinkGrantMessage,
|
||||
EndSessionMessage,
|
||||
ReceiptMessage,
|
||||
ReadReceiptMessage,
|
||||
DeliveryReceiptMessage,
|
||||
SessionEstablishedMessage,
|
||||
SessionResetMessage,
|
||||
SyncMessage,
|
||||
TypingMessage,
|
||||
|
||||
|
||||
DataMessage,
|
||||
|
||||
// children of DataMessage
|
||||
ClosedGroupMessage,
|
||||
DeviceUnlinkMessage,
|
||||
GroupInvitationMessage,
|
||||
RegularMessage,
|
||||
};
|
||||
|
Loading…
Reference in New Issue