Conform more of the codebase to strict types (#11162)
This commit is contained in:
parent
9c7d935aae
commit
95283d21bb
9 changed files with 36 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue