Skip to content

Commit

Permalink
up version
Browse files Browse the repository at this point in the history
  • Loading branch information
fakefeik committed Mar 14, 2019
1 parent 0678451 commit bef4f7e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ When **disabled** produces all types as-is.

This option is **disabled** by default. When **enabled**, global `Nullable<T>` 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)
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down

0 comments on commit bef4f7e

Please sign in to comment.