jburzynski / TypeGen

Single-class-per-file C# to TypeScript generator
MIT License
197 stars 56 forks source link

Requesting improvements to CustomTypeMappings #175

Open stealthAngel opened 1 year ago

stealthAngel commented 1 year ago

at the moment to change a type with typegen we can update our tgconfig.json like this:

"customTypeMappings": { "Microsoft.AspNetCore.Http.IFormFile": "File" }

it would be more readable if we changed this to:

  "typeMappings": [
    {
      "sourceType": "Microsoft.AspNetCore.Http.IFormFile",
      "targetType": "File"
    }
  ]

with this approach we can later add more settings if needed.