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

Function isSvg

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

Source from the content-addressed store, hash-verified

57}
58
59export function isSvg(file: { name: string; type: string }) {
60 return accept(file, 'image/svg+xml');
61}
62
63function getFileMethod(option: IImageSrcOption) {
64 if (!option.method) return '/0';

Callers 1

cellValueToImageSrcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected