-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.d.ts
46 lines (44 loc) · 995 Bytes
/
global.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
import { Mongoose } from "mongoose";
interface KakaoAuthParams {
redirectUri?: string;
nonce?: string;
throughTalk: boolean;
state?: string;
}
export declare global {
interface Window {
ReactNativeWebView: {
postMessage: (message: string) => void;
};
Kakao: {
init: (keyValue: string) => void;
isInitialized: () => boolean;
Auth: {
authorize: (params: KakaoAuthParams) => void;
};
Link: {
createDefaultButton: (options: unknown) => void;
};
};
AppleID: {
auth: {
init: ({
clientId: string,
scope: string,
redirectURI: string,
state: string,
usePopup: boolean,
nonce: string,
}) => void;
signIn: () => void;
};
};
}
/* eslint-disable no-var */
var mongoose: {
conn?: Mongoose;
promise?: Promise<Mongoose>;
};
/* eslint-disable no-var */
var _mongoClientPromise: Promise<MongoClient>;
}