normalize naming of isPackedPureRenote and PackedPureRenote

This commit is contained in:
Hazelnoot 2024-11-17 09:08:04 -05:00
parent faf1b3559a
commit 4b503f88e1
2 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ type PackedQuote =
fileIds: NonNullable<Packed<'Note'>['fileIds']>
});
type PurePackedRenote = PackedRenote & {
type PackedPureRenote = PackedRenote & {
text: NonNullable<Packed<'Note'>['text']>;
cw: NonNullable<Packed<'Note'>['cw']>;
replyId: NonNullable<Packed<'Note'>['replyId']>;
@ -89,6 +89,6 @@ export function isQuotePacked(note: PackedRenote): note is PackedQuote {
(note.fileIds != null && note.fileIds.length > 0);
}
export function isPureRenotePacked(note: Packed<'Note'>): note is PurePackedRenote {
export function isPackedPureRenote(note: Packed<'Note'>): note is PackedPureRenote {
return isRenotePacked(note) && !isQuotePacked(note);
}