MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isUpdateFileEntry

Function isUpdateFileEntry

scripts/merge-latest-mac-yml.ts:32–40  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

30}
31
32const isUpdateFileEntry = (value: unknown): value is UpdateFileEntry => {
33 if (typeof value !== "object" || value === null) return false;
34 const entry = value as Record<string, unknown>;
35 return (
36 typeof entry["url"] === "string" &&
37 typeof entry["sha512"] === "string" &&
38 typeof entry["size"] === "number"
39 );
40};
41
42const parseManifest = (source: string, path: string): UpdateManifest => {
43 const raw = Bun.YAML.parse(source) as Record<string, unknown>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected