chore: perfect type definition (#1003)

This commit is contained in:
bowen 2023-08-28 19:48:53 +08:00 • committed by GitHub
commit f9bec1edf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 123 additions and 105 deletions

View file

@ -66,7 +66,7 @@ const SegmentCard: FC<ISegmentCardProps> = ({
hit_count,
index_node_hash,
answer,
} = detail as any
} = detail as Required<ISegmentCardProps>['detail']
const isDocScene = scene === 'doc'
const [showModal, setShowModal] = useState(false)