mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
add hasText type guard for notes
This commit is contained in:
parent
00cfeca3d7
commit
61aaa586fe
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue