Skip to content

Commit 9d03622

Browse files
muthurathinamMIchaelMainer
authored andcommitted
Fixed bugs for publishing in definitely typed repo (#203)
1 parent b6093d9 commit 9d03622

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Templates/TypeScript/src/entity_types.ts.tt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
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

1919
export 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

3030
export 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
#>
4745
export 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

Comments
 (0)