add hasText type guard for notes
This commit is contained in:
@@ -264,3 +264,7 @@ export type IMentionedRemoteUsers = {
|
|||||||
username: string;
|
username: string;
|
||||||
host: string;
|
host: string;
|
||||||
}[];
|
}[];
|
||||||
|
|
||||||
|
export function hasText(note: MiNote): note is MiNote & { text: string } {
|
||||||
|
return note.text != null;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user