new listenerOptions, now config is set in mailgo not in init
This commit is contained in:
7
mailgo.d.ts
vendored
7
mailgo.d.ts
vendored
@@ -5,6 +5,7 @@
|
||||
declare module "mailgo" {
|
||||
export type MailgoConfig = {
|
||||
initEvent?: string;
|
||||
listenerOptions?: ListenerOptions | boolean;
|
||||
dark?: boolean;
|
||||
lang?: string;
|
||||
forceLang?: boolean;
|
||||
@@ -39,5 +40,11 @@ declare module "mailgo" {
|
||||
translations: MailgoTranslations;
|
||||
};
|
||||
|
||||
export type ListenerOptions = {
|
||||
capture?: boolean;
|
||||
once?: boolean;
|
||||
passive?: boolean;
|
||||
};
|
||||
|
||||
export default function mailgo(mailgoConfig?: MailgoConfig): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user