Skip to content

Commit 7ddc0db

Browse files
committed
Update documentation and typescript-definitions.
This is also associated with https://github.com/josteink/gmail.js/issues/4.
1 parent b9eb277 commit 7ddc0db

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,14 @@ Although hand picked, this method returns the checks on beta features and deploy
663663

664664
Returns the Gmail localization, e.g. 'US'.
665665

666+
#### gmail.check.is_new_data_layer()
667+
668+
Returns `True` if the user is running Gmail with the new 2018 data-layer `False` otherwise
669+
670+
#### gmail.check.is_new_gui()
671+
672+
Returns `True` if the user is running Gmail with the new 2018 GUI `False` otherwise
673+
666674
#### gmail.check.is_thread()
667675

668676
Returns `True` if the conversation is threaded `False` otherwise

src/gmail.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,14 @@ interface GmailGet {
281281
////////////////////////////////////////////////////////////////////////////////
282282

283283
interface GmailCheck {
284+
/**
285+
Returns True if the user is running Gmail with the new 2018 data-layer
286+
*/
287+
is_new_data_layer(): boolean;
288+
/**
289+
Returns True if the user is running Gmail with the new 2018 GUI
290+
*/
291+
is_new_gui(): boolean;
284292
/**
285293
Returns True if the conversation is threaded False otherwise
286294
*/

0 commit comments

Comments
 (0)