-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
31 lines (31 loc) · 962 Bytes
/
index.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
/**
* @typedef {Object} Provider
* @property {string} id
* @property {string} url — url of web interface
* @property {string} label — label that will can be outputed into UI
* @property {string[]} keywords — keyword that can be used to determine that email belongs to the provider
*/
/** @constant
* @type {Provider[]}
*/
export const PROVIDERS: Provider[];
export function getProvider(id: string): (Provider | undefined);
export function getProviderById(id: string): (Provider | undefined);
export function getProviderByEmail(email: string): (Provider | undefined);
export default PROVIDERS;
export type Provider = {
id: string;
/**
* — url of web interface
*/
url: string;
/**
* — label that will can be outputed into UI
*/
label: string;
/**
* — keyword that can be used to determine that email belongs to the provider
*/
keywords: string[];
};
//# sourceMappingURL=index.d.ts.map