diff --git a/types.d.ts b/types.d.ts index 770e238..488a51d 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,6 +1,6 @@ import type { LaunchOptions } from "puppeteer"; -export interface IOptions { +interface IConvertOptions { mdText?: string; mdFile?: string; outputFilename?: string; @@ -15,10 +15,12 @@ export interface IOptions { puppeteerProps?: LaunchOptions; } -export interface IResponse { +interface IConvertResponse { data: string | Buffer; path?: string; html: string; } -export type convert2img = (props: IOptions) => Promise; +declare function convert2img(props: IConvertOptions): Promise; + +export { convert2img, IConvertOptions, IConvertResponse };