-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
Copy pathindex.d.ts
50 lines (32 loc) · 927 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { ISession, ITwitterUser } from './common';
export declare class TwitterError extends Error {
readonly native;
}
export declare class TwitterUser implements ITwitterUser {
readonly formattedScreenName: string;
readonly isProtected: boolean;
readonly isVerified: boolean;
readonly name: string;
readonly profileImageUrl: string;
readonly profileUrl: string;
readonly screenName: string;
readonly userId: string;
}
export declare class Session implements ISession {
readonly authToken: string;
readonly authTokenSecret: string;
readonly userName: string;
readonly userId: string;
readonly native;
readonly ios;
readonly android;
}
export declare class Twitter {
static callback: string;
static init(consumerKey: string, consumerSecret: string);
}
export declare class TwitterSignIn {
static logIn(): Promise<Session>;
static logOut();
static getCurrentUser(): Promise<TwitterUser>
}