Use tsgo for typechecking (#9474)

This commit is contained in:
Samuel Newman
2026-04-28 11:44:15 +03:00
committed by GitHub
parent 46b8a5819b
commit 179f3c82e7
3 changed files with 52 additions and 4 deletions
+2 -3
View File
@@ -1,4 +1,4 @@
import {type TextStyle} from 'react-native'
import {type FontVariant, type TextStyle} from 'react-native'
import {IS_ANDROID, IS_WEB} from '#/env'
import {type Device, device} from '#/storage'
@@ -81,10 +81,9 @@ export function applyFonts(style: TextStyle, fontFamily: 'system' | 'theme') {
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant}
*/
if (IS_WEB) {
// @ts-expect-error - web supports 'unicode' as a valid value for fontVariant
style.fontVariant = (style.fontVariant || []).concat(
'no-contextual',
'unicode',
'unicode' as FontVariant, // web supports 'unicode' as a valid value for fontVariant
)
} else {
style.fontVariant = (style.fontVariant || []).concat('no-contextual')