-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
853 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
TypeScript.ContractGenerator.Tests/Files/Options.Expected/enum-generation-fixed-strings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
export type DefaultEnum = 'A' | 'B'; | ||
export const DefaultEnums = { | ||
['A']: (('A'): DefaultEnum), | ||
['B']: (('B'): DefaultEnum), | ||
}; |
6 changes: 6 additions & 0 deletions
6
TypeScript.ContractGenerator.Tests/Files/Options.Expected/enum-generation-fixed-strings.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
export type DefaultEnum = 'A' | 'B'; | ||
export const DefaultEnums = { | ||
['A']: ('A') as DefaultEnum, | ||
['B']: ('B') as DefaultEnum, | ||
}; |
5 changes: 5 additions & 0 deletions
5
TypeScript.ContractGenerator.Tests/Files/Options.Expected/enum-generation-typescript-enum.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
export enum DefaultEnum { | ||
A = 'A', | ||
B = 'B', | ||
} |
5 changes: 5 additions & 0 deletions
5
TypeScript.ContractGenerator.Tests/Files/Options.Expected/enum-generation-typescript-enum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
export enum DefaultEnum { | ||
A = 'A', | ||
B = 'B', | ||
} |
9 changes: 9 additions & 0 deletions
9
TypeScript.ContractGenerator.Tests/Files/Options.Expected/explicit-nullability-disabled.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
export type NotNullRootType = { | ||
someNotNullClass: SomeClass; | ||
someNullableClass?: SomeClass; | ||
notNullString: string; | ||
}; | ||
export type SomeClass = { | ||
a: number; | ||
}; |
9 changes: 9 additions & 0 deletions
9
TypeScript.ContractGenerator.Tests/Files/Options.Expected/explicit-nullability-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
export type NotNullRootType = { | ||
someNotNullClass: SomeClass; | ||
someNullableClass?: SomeClass; | ||
notNullString: string; | ||
}; | ||
export type SomeClass = { | ||
a: number; | ||
}; |
9 changes: 9 additions & 0 deletions
9
TypeScript.ContractGenerator.Tests/Files/Options.Expected/explicit-nullability-enabled.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
export type NotNullRootType = { | ||
someNotNullClass: SomeClass; | ||
someNullableClass?: null | SomeClass; | ||
notNullString: string; | ||
}; | ||
export type SomeClass = { | ||
a: number; | ||
}; |
9 changes: 9 additions & 0 deletions
9
TypeScript.ContractGenerator.Tests/Files/Options.Expected/explicit-nullability-enabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
export type NotNullRootType = { | ||
someNotNullClass: SomeClass; | ||
someNullableClass?: null | SomeClass; | ||
notNullString: string; | ||
}; | ||
export type SomeClass = { | ||
a: number; | ||
}; |
4 changes: 4 additions & 0 deletions
4
TypeScript.ContractGenerator.Tests/Files/Options.Expected/optional-properties-disabled.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export type SingleNullablePropertyType = { | ||
a: null | number; | ||
}; |
4 changes: 4 additions & 0 deletions
4
TypeScript.ContractGenerator.Tests/Files/Options.Expected/optional-properties-disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export type SingleNullablePropertyType = { | ||
a: null | number; | ||
}; |
4 changes: 4 additions & 0 deletions
4
TypeScript.ContractGenerator.Tests/Files/Options.Expected/optional-properties-enabled.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export type SingleNullablePropertyType = { | ||
a?: null | number; | ||
}; |
4 changes: 4 additions & 0 deletions
4
TypeScript.ContractGenerator.Tests/Files/Options.Expected/optional-properties-enabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export type SingleNullablePropertyType = { | ||
a?: null | number; | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.