workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

`worker-configuration.d.ts` is 5,000 LOC!

Open samuelcolvin opened this issue 5 months ago • 1 comments

What versions & operating system are you using?

4.17.0

Please provide a link to a minimal reproduction

https://github.com/samuelcolvin/cloudkv/pull/11

Describe the Bug

I complained on twitter about this too.

worker-configuration.d.ts has become extremely ugly.

It's now >5k LOC with 5 env vars set, and causes a diff of +4.4k -4.4k when I add a new env var.

Image

This completely destroys any meaning of diff sizes.

Surely you should put just the env vars in that file. If you want other types, put them in your library!

Please provide any relevant error logs

No response

samuelcolvin avatar Jun 13 '25 08:06 samuelcolvin