From 5741a4ff4ebf7c1a92f6374ba4334540beddba9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Vatle?= Date: Thu, 4 Apr 2019 19:07:04 +0300 Subject: [PATCH] Correct expected promise type in fast-ratelimit test comments. --- types/fast-ratelimit/fast-ratelimit-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/fast-ratelimit/fast-ratelimit-tests.ts b/types/fast-ratelimit/fast-ratelimit-tests.ts index c0e8793a2f..d5c7467b11 100644 --- a/types/fast-ratelimit/fast-ratelimit-tests.ts +++ b/types/fast-ratelimit/fast-ratelimit-tests.ts @@ -7,11 +7,11 @@ const limit = new FastRateLimit({ // $type: FastRateLimit const someNamespace = 'some-namespace'; -const consume = limit.consume(someNamespace); // $type: Promise +const consume = limit.consume(someNamespace); // $type: Promise consume.then(() => {}); // User can send message. consume.catch(() => {}); // Use cannot send message. -const hasToken = limit.hasToken(someNamespace); // $type: Promise +const hasToken = limit.hasToken(someNamespace); // $type: Promise consume.then(() => {}); // User has remaining token. consume.catch(() => {}); // User does not have remaining token.