Skip to content

Commit

Permalink
types: declare main function
Browse files Browse the repository at this point in the history
  • Loading branch information
LolipopJ committed Apr 18, 2023
1 parent 094d2dc commit 276d04a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { LaunchOptions } from "puppeteer";

export interface IOptions {
interface IConvertOptions {
mdText?: string;
mdFile?: string;
outputFilename?: string;
Expand All @@ -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<IResponse>;
declare function convert2img(props: IConvertOptions): Promise<IConvertResponse>;

export { convert2img, IConvertOptions, IConvertResponse };

0 comments on commit 276d04a

Please sign in to comment.