forked from Ivasoft/mattermost-mobile
Ensure no unresolved types in the definition files (#6521)
* Ensure no unresolved types in the definition files * Address feedback and general cleanup * Move import from @constants/x to @constants where relevant * Remove unneeded "import as"
This commit is contained in:
committed by
GitHub
parent
aec0ccb105
commit
f4e6917185
3
types/api/posts.d.ts
vendored
3
types/api/posts.d.ts
vendored
@@ -55,7 +55,7 @@ type Post = {
|
||||
original_id: string;
|
||||
message: string;
|
||||
type: PostType;
|
||||
participants?: null | UserProfile[];
|
||||
participants?: null | UserProfile[]|string[];
|
||||
props: Record<string, any>;
|
||||
hashtags: string;
|
||||
pending_post_id: string;
|
||||
@@ -66,7 +66,6 @@ type Post = {
|
||||
user_activity_posts?: Post[];
|
||||
state?: 'DELETED';
|
||||
prev_post_id?: string;
|
||||
participants: null|string[];
|
||||
};
|
||||
|
||||
type PostProps = {
|
||||
|
||||
2
types/api/threads.d.ts
vendored
2
types/api/threads.d.ts
vendored
@@ -23,7 +23,7 @@ type ThreadWithViewedAt = Thread & {
|
||||
};
|
||||
|
||||
type ThreadParticipant = {
|
||||
id: $ID<User>;
|
||||
id: $ID<UserProfile>;
|
||||
thread_id: $ID<Thread>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user