summaryrefslogtreecommitdiff
path: root/src/api/event.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-03-01 17:37:01 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-03-01 17:37:01 +0900
commitac8eb94a27905a1bcac9fea445b41e5866cf173f (patch)
treef2837b62d350356ae2f2f454960f2f22ab4a0d89 /src/api/event.ts
parentUpdate tslint.json (diff)
downloadsharkey-ac8eb94a27905a1bcac9fea445b41e5866cf173f.tar.gz
sharkey-ac8eb94a27905a1bcac9fea445b41e5866cf173f.tar.bz2
sharkey-ac8eb94a27905a1bcac9fea445b41e5866cf173f.zip
Use any instead of Object
Diffstat (limited to 'src/api/event.ts')
-rw-r--r--src/api/event.ts6
1 files changed, 3 insertions, 3 deletions
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);
}
}