From 683e5b6abec93f2883c4d4dafc130e2a079f3dda Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 18 Apr 2019 14:29:17 +0900 Subject: Add type annotations --- test/streaming.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/streaming.ts') diff --git a/test/streaming.ts b/test/streaming.ts index 7594728618..a29517148a 100644 --- a/test/streaming.ts +++ b/test/streaming.ts @@ -32,7 +32,7 @@ describe('Streaming', () => { p.on('message', message => { if (message === 'ok') { (p.channel as any).onread = () => {}; - initDb(true).then(async connection => { + initDb(true).then(async (connection: any) => { Followings = connection.getRepository(Following); done(); }); @@ -44,7 +44,7 @@ describe('Streaming', () => { p.kill(); }); - const follow = async (follower, followee) => { + const follow = async (follower: any, followee: any) => { await Followings.save({ id: 'a', createdAt: new Date(), -- cgit v1.2.3-freya