From ac8eb94a27905a1bcac9fea445b41e5866cf173f Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Wed, 1 Mar 2017 17:37:01 +0900 Subject: Use any instead of Object --- src/api/event.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/event.ts') diff --git a/src/api/event.ts b/src/api/event.ts index 58b3260d56..24541ee26e 100644 --- a/src/api/event.ts +++ b/src/api/event.ts @@ -13,7 +13,7 @@ class MisskeyEvent { config.redis.port, config.redis.host); } - private publish(channel: string, type: string, value?: Object): void { + private publish(channel: string, type: string, value?: any): void { const message = value == null ? { type: type } : { type: type, body: value }; @@ -21,11 +21,11 @@ class MisskeyEvent { this.redisClient.publish(`misskey:${channel}`, JSON.stringify(message)); } - public publishUserStream(userId: ID, type: string, value?: Object): void { + public publishUserStream(userId: ID, type: string, value?: any): void { this.publish(`user-stream:${userId}`, type, typeof value === 'undefined' ? null : value); } - public publishMessagingStream(userId: ID, otherpartyId: ID, type: string, value?: Object): void { + public publishMessagingStream(userId: ID, otherpartyId: ID, type: string, value?: any): void { this.publish(`messaging-stream:${userId}-${otherpartyId}`, type, typeof value === 'undefined' ? null : value); } } -- cgit v1.2.3-freya