This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
externs.js
56 lines (50 loc) · 1.94 KB
/
externs.js
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
51
52
53
54
55
56
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/
*/
/**
* Tell Google Closure compiler not to munge the third party JS libraries below. We are
* pulling them from CDNs instead of adding them to our code base.
*
* @fileoverview This is an externs file.
* @externs
*/
/**
* Figwheel expects files with .js extension inside its source
* directories to be a foreign library. And foreign libraries *MUST*
* declare a namespace. In fact, figwheel assumes it, and if it
* doesn't find it and can't map the file back to a source .cljs file,
* it bombs out with a NullPointerException.
*
* So even if this is *NOT* a foreign library, but just an externs file,
* add a namespace declaration to prevent figwheel from crashing.
*/
goog.provide('coop.magnet.client.externs');
/**
* From here below, it's just regular externs file declarations.
*/
/**
* Javscript interopt with AWS Cognito SDK. Prevent name mangling.
*/
var AmazonCognitoIdentity;
AmazonCognitoIdentity.CognitoUserPool = function(){};
AmazonCognitoIdentity.CognitoUserPool.prototype.signUp = function(){};
AmazonCognitoIdentity.CognitoUserPool.prototype.getCurrentUser = function(){};
AmazonCognitoIdentity.AuthenticationDetails = function(){};
AmazonCognitoIdentity.CognitoUser = function(){};
AmazonCognitoIdentity.CognitoUser.prototype.authenticateUser = function(){};
AmazonCognitoIdentity.CognitoUser.prototype.getSession = function(){};
AmazonCognitoIdentity.CognitoUser.prototype.signOut = function(){};
/**
* This is a named callback result. Prevent name mangling.
*/
var cognitoAuthResult;
cognitoAuthResult.idToken;
cognitoAuthResult.idToken.jwtToken;
/**
* Javascript interop with browser clipboard. Prevent name mangling.
*/
var navigator;
navigator.clipboard = function(){};
navigator.clipboard.prototype.writeText = function(){};