diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..67cb6cb --- /dev/null +++ b/index.d.ts @@ -0,0 +1,10 @@ +declare module "ampify" { + export = ampify; +} + +declare function ampify(html: string, options?: IOptions): Promise; + +interface IOptions { + cwd?: string; + round?: boolean; +} diff --git a/package.json b/package.json index c7484cf..a332bb5 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.5.0", "description": "Convert plain HTML to Google Accelerated Mobile Pages (AMP)", "main": "index.js", + "types": "index.d.ts", "author": { "name": "rkazakov", "email": "ruslan.kazakov@gmail.com"