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:
Daniel Espino García
2022-08-05 14:36:19 +02:00
committed by GitHub
parent aec0ccb105
commit f4e6917185
130 changed files with 395 additions and 351 deletions

View File

@@ -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 = {

View File

@@ -23,7 +23,7 @@ type ThreadWithViewedAt = Thread & {
};
type ThreadParticipant = {
id: $ID<User>;
id: $ID<UserProfile>;
thread_id: $ID<Thread>;
};