MCPcopy Create free account
hub / github.com/CapSoftware/Cap / isPositiveNumber

Function isPositiveNumber

apps/web/workflows/process-video.ts:123–125  ·  view source on GitHub ↗
(value: number | null)

Source from the content-addressed store, hash-verified

121const MEDIA_SERVER_PRESIGNED_PUT_EXPIRES_SECONDS = 3 * 60 * 60;
122
123function isPositiveNumber(value: number | null): value is number {
124 return typeof value === "number" && Number.isFinite(value) && value > 0;
125}
126
127function getInputExtension(rawFileKey: string): string {
128 const parts = rawFileKey.split(".");

Callers 1

getMetadataFromVideoRowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected