From 67d02a6a8a52e9ae9b20069aa57bbb7df22d14a8 Mon Sep 17 00:00:00 2001 From: Hans-Christian Otto Date: Sun, 17 Apr 2022 22:34:16 +0200 Subject: [PATCH] Explicitly type assert Otherwise I get the following error: ```TS2775: Assertions require every name in the call target to be declared with an explicit type annotation.``` --- src/test/tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/tests.ts b/src/test/tests.ts index a22852c..2e49880 100644 --- a/src/test/tests.ts +++ b/src/test/tests.ts @@ -15,7 +15,7 @@ const isAsyncIterableIterator = (input: unknown): input is AsyncIterableIterator chai.use(chaiAsPromised); chai.use(sinonChai); const expect = chai.expect; -const assert = chai.assert; +const assert: typeof chai.assert = chai.assert; describe('PubSub', function() { it('can subscribe and is called when events happen', () => {