1010 var enumTypes = model.GetEnumTypes();
1111 var complexTypes = model.GetComplexTypes();
1212#>
13- // Type definitions for the Microsoft Graph API
13+ // Type definitions for the Microsoft Graph <VERSION_STRING>
1414// Project: https://github.com/microsoftgraph/msgraph-typescript-typings
1515// Definitions by: Microsoft Graph Team <https://github.com/microsoftgraph>
16-
17- <#= writer.WriteHeader() #>
16+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
17+ // TypeScript Version: 2.1
1818
1919export as namespace microsoftgraph;
2020
2121<# foreach(var enumType in enumTypes) { #>
22- export type <#= enumType.Name.UpperCaseFirstChar() #> = <#= enumType.GetEnumValues() #>
22+ export type <#= enumType.Name.UpperCaseFirstChar() #> = <#= enumType.GetEnumValues() #>;
2323<# } #>
2424<#
2525 foreach(var entityType in entityTypes)
@@ -28,13 +28,11 @@ export type <#= enumType.Name.UpperCaseFirstChar() #> = <#= enumType.GetEnumValu
2828#>
2929
3030export interface <#= entityType.Name.UpperCaseFirstChar() #><# if (entityType.Base != null) { #> extends <#= entityType.Base.Name.UpperCaseFirstChar() #><# }#> {
31-
3231<# foreach(var prop in entityType.Properties.ToList()) { #>
3332 <# if (prop.LongDescription != null || prop.Description != null) { #>
3433 /** <#=prop.GetSanitizedLongDescription()#> */
3534 <# } #>
36- <#= prop.Name #>?: <#= prop.GetTypeString() #>
37-
35+ <#= prop.Name #>?: <#= prop.GetTypeString() #>;
3836<# } #>
3937}
4038<#
@@ -45,13 +43,11 @@ export interface <#= entityType.Name.UpperCaseFirstChar() #><# if (entityType.Ba
4543 {
4644#>
4745export interface <#= complexType.Name.UpperCaseFirstChar()#><# if (complexType.Base != null) { #> extends <#= complexType.Base.Name.UpperCaseFirstChar() #><# }#> {
48-
4946<# foreach(var prop in complexType.Properties) { #>
5047 <# if (prop.LongDescription != null || prop.Description != null) { #>
5148 /** <#=prop.GetSanitizedLongDescription()#> */
5249 <# } #>
53- <#= prop.Name #>?: <#= prop.GetTypeString() #>
54-
50+ <#= prop.Name #>?: <#= prop.GetTypeString() #>;
5551<# } #>
5652}
5753<# } #>
0 commit comments