Skip to content

Commit 7e62ad6

Browse files
committed
refactor: move SDK custom fields to separate file
1 parent f260fbe commit 7e62ad6

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export interface DefaultChannelData {
2+
image?: string;
3+
}
4+
5+
export interface DefaultAttachmentData {
6+
/**
7+
* @deprecated Please use `image_url` instead
8+
*/
9+
img_url?: string;
10+
/**
11+
* Will be `true` if an attachment was added using `attachmentService.addAttachment`
12+
*
13+
* This is a non-standard property, other SDKs will ignore this property
14+
*/
15+
isCustomAttachment?: boolean;
16+
}

projects/stream-chat-angular/src/lib/types.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -470,20 +470,3 @@ export type GalleryAttachment = {
470470
type: 'gallery';
471471
images: Attachment[];
472472
};
473-
474-
export interface DefaultChannelData {
475-
image?: string;
476-
}
477-
478-
export interface DefaultAttachmentData {
479-
/**
480-
* @deprecated Please use `image_url` instead
481-
*/
482-
img_url?: string;
483-
/**
484-
* Will be `true` if an attachment was added using `attachmentService.addAttachment`
485-
*
486-
* This is a non-standard property, other SDKs will ignore this property
487-
*/
488-
isCustomAttachment?: boolean;
489-
}

projects/stream-chat-angular/src/public-api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export * from './lib/custom-templates.service';
5757
export * from './lib/message-reactions.service';
5858
export * from './lib/date-parser.service';
5959
export * from './lib/types';
60+
export * from './lib/types-custom';
6061
export * from './lib/message.service';
6162
export * from './lib/message-actions.service';
6263
export * from './lib/voice-recording/voice-recording.component';

projects/stream-chat-angular/src/stream-chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'stream-chat';
2-
import { DefaultChannelData, DefaultAttachmentData } from './lib/types';
2+
import { DefaultChannelData, DefaultAttachmentData } from './lib/types-custom';
33

44
declare module 'stream-chat' {
55
interface CustomAttachmentData extends DefaultAttachmentData {}

0 commit comments

Comments
 (0)