10
10
var enumTypes = model.GetEnumTypes();
11
11
var complexTypes = model.GetComplexTypes();
12
12
#>
13
- // Type definitions for the Microsoft Graph API
13
+ // Type definitions for the Microsoft Graph <VERSION_STRING>
14
14
// Project: https://github.com/microsoftgraph/msgraph-typescript-typings
15
15
// 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
18
18
19
19
export as namespace microsoftgraph;
20
20
21
21
<# foreach(var enumType in enumTypes) { #>
22
- export type <#= enumType.Name.UpperCaseFirstChar() #> = <#= enumType.GetEnumValues() #>
22
+ export type <#= enumType.Name.UpperCaseFirstChar() #> = <#= enumType.GetEnumValues() #>;
23
23
<# } #>
24
24
<#
25
25
foreach(var entityType in entityTypes)
@@ -28,13 +28,11 @@ export type <#= enumType.Name.UpperCaseFirstChar() #> = <#= enumType.GetEnumValu
28
28
#>
29
29
30
30
export interface <#= entityType.Name.UpperCaseFirstChar() #><# if (entityType.Base != null) { #> extends <#= entityType.Base.Name.UpperCaseFirstChar() #><# }#> {
31
-
32
31
<# foreach(var prop in entityType.Properties.ToList()) { #>
33
32
<# if (prop.LongDescription != null || prop.Description != null) { #>
34
33
/** <#=prop.GetSanitizedLongDescription()#> */
35
34
<# } #>
36
- <#= prop.Name #>?: <#= prop.GetTypeString() #>
37
-
35
+ <#= prop.Name #>?: <#= prop.GetTypeString() #>;
38
36
<# } #>
39
37
}
40
38
<#
@@ -45,13 +43,11 @@ export interface <#= entityType.Name.UpperCaseFirstChar() #><# if (entityType.Ba
45
43
{
46
44
#>
47
45
export interface <#= complexType.Name.UpperCaseFirstChar()#><# if (complexType.Base != null) { #> extends <#= complexType.Base.Name.UpperCaseFirstChar() #><# }#> {
48
-
49
46
<# foreach(var prop in complexType.Properties) { #>
50
47
<# if (prop.LongDescription != null || prop.Description != null) { #>
51
48
/** <#=prop.GetSanitizedLongDescription()#> */
52
49
<# } #>
53
- <#= prop.Name #>?: <#= prop.GetTypeString() #>
54
-
50
+ <#= prop.Name #>?: <#= prop.GetTypeString() #>;
55
51
<# } #>
56
52
}
57
53
<# } #>
0 commit comments