From 307bf2165ec73ad442afbf319e74ad35577b82fc Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 13 Feb 2019 14:14:26 +0100 Subject: [PATCH] Fixed Snoowrap.fromAuthCode return type [As per Snoowrap source code, it returns a Promise with a Snoowrap instance](https://github.com/not-an-aardvark/snoowrap/blob/cd2cc85fdc6354e641a458c192795e8784c0c675/src/snoowrap.js#L189) --- types/snoowrap/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/snoowrap/index.d.ts b/types/snoowrap/index.d.ts index 069324ab60..987c35e49c 100644 --- a/types/snoowrap/index.d.ts +++ b/types/snoowrap/index.d.ts @@ -32,7 +32,7 @@ export = Snoowrap; declare class Snoowrap { static getAuthUrl(options: Snoowrap.AuthUrlOptions): string; - static fromAuthCode(options: Snoowrap.AuthCodeOptions): Snoowrap; + static fromAuthCode(options: Snoowrap.AuthCodeOptions): Promise; static noConflict(): typeof Snoowrap; accessToken: string;