Skip to content

Commit

Permalink
Merge pull request #13 from github/add-typescript-definition-file
Browse files Browse the repository at this point in the history
add typescript definition file
  • Loading branch information
koddsson authored Jul 30, 2019
2 parents 9b21198 + 4709442 commit 33c0857
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 37 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default class MarkdownToolbarElement extends HTMLElement {
readonly field: HTMLTextAreaElement | undefined | null;
}
49 changes: 13 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"repository": "github/markdown-toolbar-element",
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"types": "index.d.ts",
"scripts": {
"clean": "rm -rf dist",
"lint": "github-lint",
Expand All @@ -22,7 +23,8 @@
],
"license": "MIT",
"files": [
"dist"
"dist",
"index.d.ts"
],
"devDependencies": {
"@babel/cli": "^7.4.4",
Expand Down

0 comments on commit 33c0857

Please sign in to comment.