Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 407f61a

Browse files
chore(deps): bump TypeScript to 3.9 (#1302)
1 parent 9dba6aa commit 407f61a

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"timekeeper": "^2.0.0",
9292
"tmp": "0.2.1",
9393
"ts-node": "^8.0.0",
94-
"typescript": "3.6.4",
94+
"typescript": "^3.9.6",
9595
"@microsoft/api-documenter": "^7.8.10",
9696
"@microsoft/api-extractor": "^7.8.10"
9797
},

test/test-cls-ah.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('AsyncHooks-based CLS', () => {
3939
fn: (this: This, ...args: any[]) => Result,
4040
thisArg?: This
4141
): Result {
42-
if (super.runInAsyncScope) {
42+
if (typeof super.runInAsyncScope === 'function') {
4343
// eslint-disable-next-line prefer-rest-params
4444
return super.runInAsyncScope.apply(this, arguments);
4545
} else {

test/test-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ describe('Behavior set by config for Tracer', () => {
108108
return config.pluginLoaderConfig.tracerConfig;
109109
} else {
110110
assert.fail('Configuration was not enabled.');
111-
throw new Error(); // unreachable.
112111
}
113112
};
114113

test/test-trace-writer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ describe('Trace Writer', () => {
143143
_cacheClientFromJSON: typeof writer.authClient.fromJSON;
144144
},
145145
'_cacheClientFromJSON',
146-
cacheClientFromJSON => {
146+
((cacheClientFromJSON: Function) => {
147147
return function (
148148
this: GoogleAuth,
149149
json: JWTInput,
@@ -152,7 +152,7 @@ describe('Trace Writer', () => {
152152
capturedJson = json;
153153
return cacheClientFromJSON.call(this, json, options);
154154
};
155-
}
155+
}) as never
156156
);
157157
await writer.authClient.getClient();
158158
shimmer.unwrap(

0 commit comments

Comments
 (0)