Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

17 lines · 545 BRaw History
1// The parts of node:zlib and node:crypto that @diffinery/git-core uses (zlib.ts, sha1.ts). The Worker
2// has them at runtime through nodejs_compat, but type-checks without @types/node.
3declare module "node:zlib" {
4 interface ZlibOptions {
5 chunkSize?: number;
6 maxOutputLength?: number;
7 }
8 function inflateSync(data: Uint8Array, options?: ZlibOptions): Uint8Array;
9}
10
11declare module "node:crypto" {
12 interface Hash {
13 update(data: Uint8Array): Hash;
14 digest(): Uint8Array;
15 }
16 function createHash(algorithm: "sha1"): Hash;
17}