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)
This commit is contained in:
Eric
2019-02-13 14:14:26 +01:00
committed by GitHub
parent d77c47c753
commit 307bf2165e
+1 -1
View File
@@ -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<Snoowrap>;
static noConflict(): typeof Snoowrap;
accessToken: string;