MCPcopy Index your code
hub / github.com/CapSoftware/Cap / isPostTarget

Function isPostTarget

apps/web/utils/upload-target.ts:15–18  ·  view source on GitHub ↗
(
	target: UploadTarget,
)

Source from the content-addressed store, hash-verified

13};
14
15const isPostTarget = (
16 target: UploadTarget,
17): target is { url: string; fields: Record<string, string> } =>
18 !("type" in target) || target.type === "s3Post";
19
20const isDriveResumableTarget = (
21 target: UploadTarget,

Callers 1

uploadWithTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected