Skip to content

Commit d8666a0

Browse files
pmconneGerrit0
authored andcommitted
Upgrade to typescript-3.7; add test for assertion functions.
1 parent c67dabc commit d8666a0

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"progress": "^2.0.3",
4141
"shelljs": "^0.8.3",
4242
"typedoc-default-themes": "^0.6.0",
43-
"typescript": "3.6.x"
43+
"typescript": "3.7.x"
4444
},
4545
"devDependencies": {
4646
"@types/fs-extra": "^8.0.0",

src/test/converter/function/function.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ export function multipleSignatures():string {
126126
export function moduleFunction(arg:string):string { return ''; }
127127

128128

129+
/**
130+
* This is an assertion function.
131+
*
132+
* @param condition The condition that is asserted to be true when this function returns.
133+
*/
134+
export function assertionFunction(condition:boolean):asserts condition { }
135+
136+
129137
/**
130138
* This is the module extending the function moduleFunction().
131139
*/

0 commit comments

Comments
 (0)