diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cf2208..e7948cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.5 - 2019.03.14 +- Add `ContractGeneratorIgnore` and `ContractGeneratorInferValue` attributes that can be applied to properties +- Add `ResolveProperty` method to `ICustomTypeGenerator` for property customization + ## v1.4 - 2019.03.08 - `//tslint:disable` is placed before codegen marker - Global rename: `FlowType => TypeScript` diff --git a/README.md b/README.md index 5acad33..a474921 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,13 @@ When **disabled** produces all types as-is. This option is **disabled** by default. When **enabled**, global `Nullable` is used instead of union `null | T` +## Attributes + +There are several attributes that can be applied to properties + +* `ContractGeneratorIgnore` attribute makes generator skip current property. +* `ContractGeneratorInferValue` signals to generator that value in property is constant. This attribute can be used only in classes that have default parameterless constructor. + ## Known bugs See [this issue](https://github.com/skbkontur/TypeScript.ContractGenerator/issues/1) diff --git a/version.json b/version.json index 50e008f..2ca7511 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.4", + "version": "1.5", "assemblyVersion": { "precision": "build" },