Enable React Native strict TypeScript API (#11459)

This commit is contained in:
Samuel Newman
2026-08-25 09:40:14 +03:00
committed by GitHub
parent 5f3d24efab
commit f87fdd2ea2
149 changed files with 506 additions and 623 deletions
-1
View File
@@ -77,7 +77,6 @@ function useMigrateMutes(setThreadMute: SetStateContext) {
while (!cancelled) {
const threads = persisted.get('mutedThreads')
// @ts-ignore findLast is polyfilled - esb
const root = threads.findLast(uri => uri.includes(currentAccount.did))
if (!root) break
+1 -1
View File
@@ -209,7 +209,7 @@ export function tryParse(rawData: string): Schema | undefined {
const errors =
parsed.error?.errors?.map(e => ({
code: e.code,
// @ts-ignore exists on some types
// @ts-expect-error exists on some types
expected: e?.expected,
path: e.path?.join('.'),
})) || []
+1 -1
View File
@@ -45,7 +45,7 @@ export function useNuxs():
// const queryClient = useQueryClient()
// const pdsClient = usePdsClient()
// // @ts-ignore
// // @ts-expect-error
// window.clearNux = async (ids: string[]) => {
// await pdsClient.call(removeNuxs, ids)
// // triggers a refetch
+3 -3
View File
@@ -90,7 +90,7 @@ export function getTraversalMetadata({
}
if (isDevMode()) {
// @ts-ignore dev only for debugging
// @ts-expect-error dev only for debugging
metadata.postData.text = getPostRecord(item.value.post).text
}
@@ -104,9 +104,9 @@ export function storeTraversalMetadata(
metadatas.set(metadata.postData.uri, metadata)
if (isDevMode()) {
// @ts-ignore dev only for debugging
// @ts-expect-error dev only for debugging
metadatas.set(metadata.postData.text, metadata)
// @ts-ignore
// @ts-expect-error
window.__thread = metadatas
}
}
+2 -2
View File
@@ -21,7 +21,7 @@ export function threadPostNoUnauthenticated({
uri,
depth,
value: value as app.bsky.unspecced.defs.ThreadItemNoUnauthenticated,
// @ts-ignore populated by the traversal
// @ts-expect-error populated by the traversal
ui: {},
}
}
@@ -91,7 +91,7 @@ export function threadPost({
},
isBlurred,
moderation,
// @ts-ignore populated by the traversal
// @ts-expect-error populated by the traversal
ui: {},
}
}