Parsing of C# data annotations to TypeScript/Angular Validators
Parses C# data annotations to
- TypeScript constants
- Angular Validators which can be used in Reactive Forms
$ npm install csharp-data-annotations-parser
$ parse-csharp-data-annotations --dll="C:\dllfolder\somedll.dll" --tsConstantsDestination="C:\temp\ts-constants.ts" --ngReactiveFormValidatorsDestination="C:\temp\ng-validators.ts"
Arguments
- --dll (path to c# dll)
Options
- --tsConstantsDestination (output path of TypeScript constants file)
- --ngReactiveFormValidatorsDestination (output path of Angular Validators file)