Hacker GitHub

← All repos

typestack/class-transformer

View on GitHub ↗ ★ 7,337 TypeScript

Decorator-based transformation, serialization, and deserialization between objects and classes.

4 mentions on Hacker News by 3 people: 0 stories, 4 comments · first 2018-02-27 · latest 2023-06-23

Mentions per year 4 mentions · busiest year 2018 (1)
20082026
  1. …I have made such a library myself: https://github.com/decoverto/decoverto Another library would be https://github.com/typestack/class-transformer
    comment by MatthiasDev · 2023-06-23 · in Cookie Clicker saved my PhD
  2. …never the less. TypeScript can help you structure your validations but you need to write them. [1] https://github.com/typestack/class-transformer [2] https://github.com/typestack/class-validator
  3. …which also do the same job but integrate a bit better into the whole typescript cosmos. [1] https://github.com/typestack/class-transformer [2] https://github.com/typestack/class-validator
    comment by 0XAFFE · 2019-08-22 · in Using TypeScript with React
  4. I agree. Using classes for entities allows you to use libraries such as https://github.com/typestack/class-transformer And allows you to use "instanceof". User defined type guards for interfaces are hackish at best.
    comment by electrotype · 2018-02-27 · in Typescript: class vs. interface