zlacker

[return to "The Stainless SDK Generator"]
1. htunni+Xo[view] [source] 2024-04-24 18:45:29
>>brandu+(OP)
Question for Stainless folks: For Node.js/JavaScript SDKs, did you consider using Proxy instances in lieu of classes for each resource, to reduce the amount of actual code generated?
◧◩
2. rattra+aq[view] [source] 2024-04-24 18:54:08
>>htunni+Xo
Yeah, we opted for classes like this to ensure simple, reliable static typing.

The amount of runtime code generated per endpoint is typically around 3 short lines – here's an example, also posted elsewhere on this thread: https://github.com/lithic-com/lithic-node/blob/36d4a6a70597e...

[go to top]