Conform more of the codebase to strict types (#11162)

This commit is contained in:
Michael Telatynski 2023-06-29 12:17:05 +01:00 committed by GitHub
parent 9c7d935aae
commit 95283d21bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 36 additions and 31 deletions

View file

@ -47,9 +47,9 @@ interface ISortedEmoji {
const SORTED_EMOJI: ISortedEmoji[] = EMOJI.sort((a, b) => {
if (a.group === b.group) {
return a.order - b.order;
return a.order! - b.order!;
}
return a.group - b.group;
return a.group! - b.group!;
}).map((emoji, index) => ({
emoji,
// Include the index so that we can preserve the original order