UNPKG

618 BTypeScriptView Raw
1export declare type Method = "GET" | "POST" | "PUT" | "DELETE";
2export declare type OAuthOptions = {
3 api_key: string;
4 api_secret_key: string;
5 access_token: string;
6 access_token_secret: string;
7};
8export declare type ExtendedOAuthOptions = {
9 oauth_nonce: string;
10 oauth_timestamp: number;
11};
12export declare type SignatureOAuthOptions = Pick<OAuthOptions, "access_token" | "api_key"> & ExtendedOAuthOptions;
13export declare type RequestOptions = {
14 url: string;
15 method: Method;
16 params?: Record<string, string | number | boolean>;
17 data?: Record<string, string | number | boolean>;
18};