Cross-Compatible Typescript Libraries (browser and node.js)
UPDATE 2025-08-26 I don’t recommend the approach described in this article. Why is that? Now I prefer an adapter-based approach, where (for runtime-specific implementations) the library provides a generic interface that must be implemented by a concrete adapter. You may get an idea of this approach by looking at the PIDF-LO library developed by DEC112. […]
Cross-Compatible Typescript Libraries (browser and node.js) Weiterlesen »