mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
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:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user