Typia is a transformer library supporting:

  • Super-fast Runtime Validators
  • Enhanced JSON functions
  • Protocol Buffer encoder and decoder
  • Random data generator
    • not_woody_shaw@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Oh, I get it. It’s like a tech demo, to encourage Microsoft to add compiler plugins. Can’t really use it on a project of any scale, due to every other tool also providing its own TS compiler, again because TSC doesn’t support plugins.

        • not_woody_shaw@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          10 months ago

          Oh, you just add it as a separate task in package.json? That seems nicer than converting all your type defs manually to io.ts format or similar.

          • lorefnon@programming.devOP
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            Yes, that mode works pretty well. In my case I don’t really own the types (they come from a third party source) so being able to to auto generate validators from them is very convenient.