declare module
This commit is contained in:
2
dist/mailgo.dark.min.js.map
vendored
2
dist/mailgo.dark.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/mailgo.min.js.map
vendored
2
dist/mailgo.min.js.map
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
mailgo.d.ts
vendored
6
mailgo.d.ts
vendored
@@ -2,8 +2,7 @@
|
|||||||
// Project: mailgo
|
// Project: mailgo
|
||||||
// Definitions by: Matteo Manzinello <https://matteomanzinello.com>
|
// Definitions by: Matteo Manzinello <https://matteomanzinello.com>
|
||||||
|
|
||||||
declare module "mailgo";
|
declare module "mailgo" {
|
||||||
|
|
||||||
export type MailgoConfig = {
|
export type MailgoConfig = {
|
||||||
initEvent?: string;
|
initEvent?: string;
|
||||||
dark?: boolean;
|
dark?: boolean;
|
||||||
@@ -11,4 +10,5 @@ export type MailgoConfig = {
|
|||||||
forceLang?: boolean;
|
forceLang?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function mailgo(mailgoConfig?: MailgoConfig): void;
|
export function mailgo(mailgoConfig?: MailgoConfig): void;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { MailgoConfig } from "../mailgo";
|
import { MailgoConfig } from "mailgo";
|
||||||
|
|
||||||
// i18n for mailgo
|
// i18n for mailgo
|
||||||
const i18n = require("../i18n/i18n.json");
|
const i18n = require("../i18n/i18n.json");
|
||||||
|
|||||||
@@ -10,5 +10,10 @@
|
|||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"resolveJsonModule": true
|
"resolveJsonModule": true
|
||||||
},
|
},
|
||||||
"include": ["src", "webpack/mailgo.lib.ts", "webpack/mailgo.dist.ts"]
|
"include": [
|
||||||
|
"src",
|
||||||
|
"mailgo.d.ts",
|
||||||
|
"webpack/mailgo.lib.ts",
|
||||||
|
"webpack/mailgo.dist.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user