MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / isSupportedShareXDestination

Function isSupportedShareXDestination

utils/sharex.ts:64–72  ·  view source on GitHub ↗
(config: ShareXUploaderConfig)

Source from the content-addressed store, hash-verified

62}
63
64export function isSupportedShareXDestination(config: ShareXUploaderConfig): boolean {
65 const destinationTypes = parseDestinationTypes(config.DestinationType);
66
67 if (destinationTypes.length === 0) {
68 return true;
69 }
70
71 return destinationTypes.includes("FileUploader") || destinationTypes.includes("ImageUploader");
72}
73
74export function resolveShareXTemplate(
75 template: string | undefined,

Callers 1

parseShareXConfigFunction · 0.85

Calls 1

parseDestinationTypesFunction · 0.85

Tested by

no test coverage detected