Skip to content

Commit

Permalink
Add TypeScript declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt authored and rkazakov committed May 7, 2019
1 parent b36b5ae commit b47ca63
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare module "ampify" {
export = ampify;
}

declare function ampify(html: string, options?: IOptions): Promise<string>;

interface IOptions {
cwd?: string;
round?: boolean;
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]"
Expand Down

0 comments on commit b47ca63

Please sign in to comment.