How srvx handles runtime type declarations
mainTo avoid dependency conflicts and tsc failures caused by overlapping global declarations (e.g., @types/bun and @types/deno both declaring globals), srvx uses minimal, custom type declarations for each runtime.
These types are structurally compatible with official runtime objects (like Bun.Server, Deno.HttpServer, or AWS Lambda events), meaning you can pass real runtime objects into srvx functions without error. However, because these types only cover the properties that srvx specifically reads or forwards, they are not exhaustive.
When to use official types: If you need access to the full API surface of a specific runtime object beyond what srvx uses, you should cast the object to its official type from the corresponding provider package.