42 lines
883 B
TypeScript
42 lines
883 B
TypeScript
// Type definitions for mailgo
|
|
// Project: mailgo
|
|
// Definitions by: Matteo Manzinello <https://matteomanzinello.com>
|
|
|
|
declare module "mailgo" {
|
|
export type MailgoConfig = {
|
|
initEvent?: string;
|
|
dark?: boolean;
|
|
lang?: string;
|
|
forceLang?: boolean;
|
|
};
|
|
|
|
export type MailgoTranslation = {
|
|
open_in?: string;
|
|
cc_?: string;
|
|
bcc_?: string;
|
|
subject_?: string;
|
|
body_?: string;
|
|
gmail?: string;
|
|
outlook?: string;
|
|
telegram?: string;
|
|
whatsapp?: string;
|
|
skype?: string;
|
|
call?: string;
|
|
open?: string;
|
|
_default?: string;
|
|
_as_default?: string;
|
|
copy?: string;
|
|
};
|
|
|
|
export type MailgoTranslations = {
|
|
[language: string]: MailgoTranslation;
|
|
};
|
|
|
|
export type MailgoI18n = {
|
|
languages: string[];
|
|
translations: MailgoTranslations;
|
|
};
|
|
|
|
export default function mailgo(mailgoConfig?: MailgoConfig): void;
|
|
}
|