Support for external code-bases we cannot change

#40 Open
Repository
ofrot
Branch
default
Repository
LukasKabrt
Branch
default

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update 
hg pull -r default https://bitbucket.org/ofrot/typelite
Author
  1. Ofer Rothschild
Reviewers
Description

These changes are useful if we want to use TypeLITE for code-bases we cannot change. If we have libraries we can't change or if we don't want to insert external libraries or attributes to the business logic, we can just add an interface class and customise TypeLITE's behaviour (using the TypeScriptFluent, or directly through the model classes).

  1. Added an option to use a predicate to determine if a member should be ignored, instead of an attribute.
  2. Added an option to write enums as a union of strings instead of enums.
  3. Added support in mapping types to custom serialization types.
  4. Added an option to serialize dictionaries as classes instead of collections, as an IDictionary where the keys are string.
  5. Bug fix: TsProperty.ctor(FieldInfo) should call GetField and not GetProperty.

Comments (0)