Upgrade to typescript-eslint v6 (#25904)

This commit is contained in:
Renaud Chaput
2023-07-13 11:49:16 +02:00
committed by GitHub
parent 3ed9b55cb3
commit a7253075d1
23 changed files with 133 additions and 107 deletions

View File

@ -28,9 +28,10 @@ export type SearchData = [
Emoji['unified'],
];
export interface ShortCodesToEmojiData {
[key: ShortCodesToEmojiDataKey]: [FilenameData, SearchData];
}
export type ShortCodesToEmojiData = Record<
ShortCodesToEmojiDataKey,
[FilenameData, SearchData]
>;
export type EmojisWithoutShortCodes = FilenameData[];
export type EmojiCompressed = [

View File

@ -9,7 +9,7 @@ import emojiCompressed from './emoji_compressed';
import { unicodeToUnifiedName } from './unicode_to_unified_name';
type Emojis = {
[key in keyof ShortCodesToEmojiData]: {
[key in NonNullable<keyof ShortCodesToEmojiData>]: {
native: BaseEmoji['native'];
search: Search;
short_names: Emoji['short_names'];