mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 23:12:38 +08:00
refactor(AttachmentButton): 移除类型注释,使用自动类型推断
This commit is contained in:
parent
0fdae33f51
commit
e15363c71c
@ -1,4 +1,4 @@
|
||||
import { FileMetadata, FileType } from '@renderer/types'
|
||||
import { FileType } from '@renderer/types'
|
||||
import { filterSupportedFiles } from '@renderer/utils/file'
|
||||
import { Tooltip } from 'antd'
|
||||
import { Paperclip } from 'lucide-react'
|
||||
@ -39,7 +39,7 @@ const AttachmentButton: FC<Props> = ({
|
||||
const useAllFiles = extensions.length > 20
|
||||
|
||||
setSelecting(true)
|
||||
const _files: FileMetadata[] = await window.api.file.select({
|
||||
const _files = await window.api.file.select({
|
||||
properties: ['openFile', 'multiSelections'],
|
||||
filters: [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user