Skip to content

Commit b08c615

Browse files
1. New metadata added under 2018_08_16
2. Typescript typings bug fix: All properties in interfaces are optional
1 parent 503f200 commit b08c615

File tree

3 files changed

+35158
-3
lines changed

3 files changed

+35158
-3
lines changed

Templates/TypeScript/src/entity_types.ts.tt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ export interface <#= entityType.Name.UpperCaseFirstChar() #><# if (entityType.Ba
3333
<# if (prop.LongDescription != null) { #>
3434
/** <#=prop.LongDescription#> */
3535
<# } #>
36-
<#= prop.Name #>?: <#= prop.GetTypeString() #>
36+
<# if (prop.IsNullable == false) { #>
37+
<#= prop.Name #>: <#= prop.GetTypeString() #>
38+
<# } else { #>
39+
<#= prop.Name #>?: <#= prop.GetTypeString() #>
40+
<# } #>
3741

3842
<# } #>
3943
}
@@ -50,8 +54,12 @@ export interface <#= complexType.Name.UpperCaseFirstChar()#><# if (complexType.B
5054
<# if (prop.LongDescription != null) { #>
5155
/** <#=prop.LongDescription#> */
5256
<# } #>
53-
<#= prop.Name #>?: <#= prop.GetTypeString() #>
57+
<# if (prop.IsNullable == false) { #>
58+
<#= prop.Name #>: <#= prop.GetTypeString() #>
59+
<# } else { #>
60+
<#= prop.Name #>?: <#= prop.GetTypeString() #>
61+
<# } #>
5462

5563
<# } #>
5664
}
57-
<# } #>
65+
<# } #>

0 commit comments

Comments
 (0)