From 08b4410e65e238d93a6dc614dff3aef18fae8a13 Mon Sep 17 00:00:00 2001 From: Lucas Willems Date: Thu, 9 Jul 2020 09:28:17 +0200 Subject: [PATCH] Make consumer_key and consumer_secret optional They should not be required because a `bearer_token` can be sufficient. --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index d3151f4..1327846 100644 --- a/index.d.ts +++ b/index.d.ts @@ -123,9 +123,9 @@ interface TwitterOptions { /** version "1.1" is the default (change for other subdomains) */ version?: string; /** consumer key from Twitter. */ - consumer_key: string; + consumer_key?: string; /** consumer secret from Twitter */ - consumer_secret: string; + consumer_secret?: string; /** access token key from your User (oauth_token) */ access_token_key?: OauthToken; /** access token secret from your User (oauth_token_secret) */