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

Function isPdf

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

Source from the content-addressed store, hash-verified

41}
42
43export function isPdf(file: { name: string; type: string }) {
44 return accept(file, 'application/pdf');
45}
46
47export function isGif(file: { name: string; type: string }) {
48 return accept(file, 'image/gif');

Callers 6

isWhatFileTypeFunction · 0.90
showOriginImageThumbnailFunction · 0.90
ToolBarFunction · 0.90
isWhatFileTypeFunction · 0.90
showOriginImageThumbnailFunction · 0.90
cellValueToImageSrcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected