Skip to content

Commit 3f2c9ce

Browse files
committed
Fix ts errors in shell-api
1 parent 4b8a483 commit 3f2c9ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/shell-api/src/field-level-encryption.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ describe('Field Level Encryption', function () {
778778
sinon.replace(
779779
require('tls'),
780780
'connect',
781-
sinon.fake((options, onConnect) => {
781+
sinon.fake((options: any, onConnect: Function) => {
782782
if (options.host === 'kmip.example.com') {
783783
// KMIP is not http(s)-based, we don't implement strong fakes for it
784784
// and instead only verify that a connection has occurred.

packages/shell-api/src/help.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('Help', function () {
77
let translate: (str: string) => string;
88

99
beforeEach(function () {
10-
translate = sinon.fake((x) => `translated: ${x}`);
10+
translate = sinon.fake((x: string) => `translated: ${x}`);
1111
});
1212

1313
describe('#toShellResult', function () {

0 commit comments

Comments
 (0)