(value: unknown)
| 30 | } |
| 31 | |
| 32 | const 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 | |
| 42 | const parseManifest = (source: string, path: string): UpdateManifest => { |
| 43 | const raw = Bun.YAML.parse(source) as Record<string, unknown>; |
nothing calls this directly
no outgoing calls
no test coverage detected