Correct expected promise type in fast-ratelimit test comments.

This commit is contained in:
Jørgen Vatle
2019-04-04 19:07:04 +03:00
parent 74c46005e8
commit 5741a4ff4e
+2 -2
View File
@@ -7,11 +7,11 @@ const limit = new FastRateLimit({ // $type: FastRateLimit
const someNamespace = 'some-namespace';
const consume = limit.consume(someNamespace); // $type: Promise<any>
const consume = limit.consume(someNamespace); // $type: Promise<void>
consume.then(() => {}); // User can send message.
consume.catch(() => {}); // Use cannot send message.
const hasToken = limit.hasToken(someNamespace); // $type: Promise<any>
const hasToken = limit.hasToken(someNamespace); // $type: Promise<void>
consume.then(() => {}); // User has remaining token.
consume.catch(() => {}); // User does not have remaining token.