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

Function isWebp

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

Source from the content-addressed store, hash-verified

49}
50
51export function isWebp(file: { name: string; type: string }) {
52 return accept(file, 'image/webp');
53}
54
55export function isImage(file: { name: string; type: string }) {
56 return accept(file, 'image/*');

Callers 5

getCellValueThumbSrcFunction · 0.90
PreviewImageFunction · 0.90
getCellValueThumbSrcFunction · 0.90
cellValueToImageSrcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected