Enable React Native strict TypeScript API (#11459)
This commit is contained in:
Vendored
-1
@@ -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
|
||||
|
||||
@@ -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('.'),
|
||||
})) || []
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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: {},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user