This commit is contained in:
Julian Mondragon
2023-01-03 09:24:09 -05:00
256 changed files with 3885 additions and 2393 deletions

View File

@@ -20,6 +20,10 @@ type PostType =
type PostEmbedType = 'image' | 'message_attachment' | 'opengraph';
type PostPriorityData = {
priority: ''|'urgent'|'important';
};
type PostEmbed = {
type: PostEmbedType;
url: string;
@@ -39,6 +43,7 @@ type PostMetadata = {
files?: FileInfo[];
images?: Dictionary<PostImage>;
reactions?: Reaction[];
priority?: PostPriorityData;
};
type Post = {

View File

@@ -58,7 +58,7 @@ declare class CategoryModel extends Model {
@lazy myChannels: Query<MyChannelModel>;
/** hasChannels : Whether the category has any channels */
@lazy hasChannels: Observable<boolean>;
observeHasChannels(canViewArchived: boolean, channelId: string): Observable<boolean>;
/** toCategoryWithChannels returns a map of the Category with an array of ordered channel ids */
toCategoryWithChannels(): Promise<CategoryWithChannels>;

4
types/global/websocket.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
type WebsocketConnectedState = 'not_connected' | 'connected' | 'connecting';

View File

@@ -32,6 +32,7 @@ export type DeepLinkType = typeof DeepLink[keyof typeof DeepLink];
export interface DeepLinkWithData {
type: DeepLinkType;
url: string;
data?: DeepLinkChannel | DeepLinkDM | DeepLinkGM | DeepLinkPermalink | DeepLinkPlugin;
}