Skip to content

Commit

Permalink
Add typescript typings file.
Browse files Browse the repository at this point in the history
  • Loading branch information
rictic committed Feb 9, 2017
1 parent 63cb8bf commit f160ff2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"pretest": "npm run build",
"test": "node_modules/.bin/mocha",
"watch": "node_modules/.bin/coffee --watch --compile --output lib/ src/"
}
},
"typings": "src/index.d.ts"
}
8 changes: 8 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file describes the package to typescript.

/**
* Returns the number of milliseconds since the page was loaded (if browser)
* or the node process was started.
*/
declare function now(): number;
export = now;

0 comments on commit f160ff2

Please sign in to comment.