Enable React Native strict TypeScript API (#11459)
This commit is contained in:
@@ -149,7 +149,7 @@ function canPlayBskyVideoCodecs(): boolean {
|
||||
|
||||
type CachedPromise<T> = Promise<T> & {value: undefined | T}
|
||||
const promiseForHls = import(
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
'hls.js/dist/hls.min'
|
||||
// oxlint-disable-next-line typescript/no-unsafe-member-access
|
||||
).then(mod => mod.default) as CachedPromise<typeof HlsTypes.default>
|
||||
|
||||
@@ -267,7 +267,7 @@ function TranslationResult({
|
||||
? codeToLanguageName(resultSourceLanguage, i18n.locale)
|
||||
: undefined
|
||||
|
||||
const flattenedStyle = flatten(postTextStyle) ?? {}
|
||||
const flattenedStyle = flatten(postTextStyle)
|
||||
const fontSize = flattenedStyle.fontSize
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user