Skip to content

Commit af43fbd

Browse files
Merge pull request #150 from microsoftgraph/Typescript
Revert strict model generation for typescript
2 parents 76265f8 + 95e3c15 commit af43fbd

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Templates/TypeScript/src/entity_types.ts.tt

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

4238
<# } #>
4339
}
@@ -54,11 +50,7 @@ export interface <#= complexType.Name.UpperCaseFirstChar()#><# if (complexType.B
5450
<# if (prop.LongDescription != null) { #>
5551
/** <#=prop.LongDescription#> */
5652
<# } #>
57-
<# if (prop.IsNullable == false) { #>
58-
<#= prop.Name #>: <#= prop.GetTypeString() #>
59-
<# } else { #>
60-
<#= prop.Name #>?: <#= prop.GetTypeString() #>
61-
<# } #>
53+
<#= prop.Name #>?: <#= prop.GetTypeString() #>
6254

6355
<# } #>
6456
}

0 commit comments

Comments
 (0)