Testing and types updates (#39657)

This commit is contained in:
Echo
2026-06-29 16:26:22 +02:00
committed by GitHub
parent b2ebfa13a9
commit 00a8fbc43e
29 changed files with 263 additions and 191 deletions

View File

@@ -15,6 +15,7 @@ import { throttle } from 'lodash';
import { determineEmojiMode } from '@/mastodon/features/emoji/mode';
import { updateHtmlWithEmoji } from '@/mastodon/features/emoji/render';
import type { InitialState } from '@/mastodon/initial_state';
import loadKeyboardExtensions from '@/mastodon/load_keyboard_extensions';
import { loadLocale, getLocale } from '@/mastodon/locales';
import { loadPolyfills } from '@/mastodon/polyfills';
@@ -83,7 +84,7 @@ async function loaded() {
document.getElementById('initial-state')?.textContent;
if (initialStateText) {
const stateEmojiStyle = getNestedProperty(
JSON.parse(initialStateText) as unknown,
JSON.parse(initialStateText) as InitialState,
'meta',
'emoji_style',
);