MCPcopy Create free account
hub / github.com/apitable/apitable / isImage

Function isImage

packages/core/src/utils/file.ts:55–57  ·  view source on GitHub ↗
(file: { name: string; type: string })

Source from the content-addressed store, hash-verified

53}
54
55export function isImage(file: { name: string; type: string }) {
56 return accept(file, 'image/*');
57}
58
59export function isSvg(file: { name: string; type: string }) {
60 return accept(file, 'image/svg+xml');

Callers 12

isWhatFileTypeFunction · 0.90
showOriginImageThumbnailFunction · 0.90
PreviewMainFunction · 0.90
downloadFunction · 0.90
ToolBarFunction · 0.90
PreviewFunction · 0.90
onPasteFunction · 0.90
renderIconFunction · 0.90
getImageSrcFunction · 0.90
isWhatFileTypeFunction · 0.90
showOriginImageThumbnailFunction · 0.90
interceptScreenShotMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected