fix typings
This commit is contained in:
@@ -198,6 +198,8 @@ export default defineConfig(
|
||||
// this is a dep for @atproto/api, but we absolutely need them in sync, so just
|
||||
// rely on the transient version
|
||||
'@atproto/common-web',
|
||||
// XRPCError is no longer re-exported from @atproto/api
|
||||
'@atproto/xrpc',
|
||||
]
|
||||
}],
|
||||
'import-x/no-nodejs-modules': 'error',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {useState} from 'react'
|
||||
import {View} from 'react-native'
|
||||
import {XRPCError} from '@atproto/api'
|
||||
import {XRPCError} from '@atproto/xrpc'
|
||||
import {msg} from '@lingui/core/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
import {Trans} from '@lingui/react/macro'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {useCallback, useMemo, useState} from 'react'
|
||||
import {View} from 'react-native'
|
||||
import {type ComAtprotoLabelDefs, ToolsOzoneReportDefs} from '@atproto/api'
|
||||
import {XRPCError} from '@atproto/api'
|
||||
import {XRPCError} from '@atproto/xrpc'
|
||||
import {msg} from '@lingui/core/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
import {Trans} from '@lingui/react/macro'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {XRPCError} from '@atproto/api'
|
||||
import {XRPCError} from '@atproto/xrpc'
|
||||
import {t} from '@lingui/core/macro'
|
||||
|
||||
export function cleanError(str: any): string {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
type ChatBskyConvoGetLog,
|
||||
type ChatBskyConvoSendMessage,
|
||||
} from '@atproto/api'
|
||||
import {XRPCError} from '@atproto/api'
|
||||
import {XRPCError} from '@atproto/xrpc'
|
||||
import {EventEmitter} from 'eventemitter3'
|
||||
import {nanoid} from 'nanoid/non-secure'
|
||||
|
||||
|
||||
@@ -186,8 +186,8 @@ let List = forwardRef<ListMethods, ListProps>(
|
||||
scrollEventThrottle={1}
|
||||
style={style}
|
||||
ref={node => {
|
||||
localRef.current = node
|
||||
if (typeof ref === 'function') ref(node)
|
||||
localRef.current = node as FlatList_INTERNAL | null
|
||||
if (typeof ref === 'function') ref(node as FlatList_INTERNAL | null)
|
||||
else if (ref) (ref as React.MutableRefObject<any>).current = node
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user