declare module
This commit is contained in:
parent
50d1d9f648
commit
e8b13ed15c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2,13 +2,13 @@
|
|||
// Project: mailgo
|
||||
// Definitions by: Matteo Manzinello <https://matteomanzinello.com>
|
||||
|
||||
declare module "mailgo";
|
||||
declare module "mailgo" {
|
||||
export type MailgoConfig = {
|
||||
initEvent?: string;
|
||||
dark?: boolean;
|
||||
lang?: string;
|
||||
forceLang?: boolean;
|
||||
};
|
||||
|
||||
export type MailgoConfig = {
|
||||
initEvent?: string;
|
||||
dark?: boolean;
|
||||
lang?: string;
|
||||
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
|
||||
const i18n = require("../i18n/i18n.json");
|
||||
|
|
|
@ -10,5 +10,10 @@
|
|||
"moduleResolution": "node",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue