Skip to content

Commit 6d37bf9

Browse files
authored
Merge pull request #10 from github/add-flow-definition-file
add flow definition file for the element API
2 parents bafbd59 + 03055a7 commit 6d37bf9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

index.js.flow

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* @flow strict */
2+
3+
declare module '@github/markdown-toolbar-element' {
4+
declare export default class MarkdownToolbarElement extends HTMLElement {
5+
get field(): ?HTMLTextAreaElement;
6+
}
7+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"prebuild": "npm run clean && npm run lint && mkdir dist",
1212
"build-umd": "BABEL_ENV=umd babel index.js -o dist/index.umd.js",
1313
"build-esm": "BABEL_ENV=esm babel index.js -o dist/index.esm.js",
14-
"build": "npm run build-umd && npm run build-esm",
14+
"build": "npm run build-umd && npm run build-esm && cp index.js.flow dist/index.esm.js.flow && cp index.js.flow dist/index.umd.js.flow",
1515
"pretest": "npm run build",
1616
"test": "karma start test/karma.config.js",
1717
"prepublishOnly": "npm run build"

0 commit comments

Comments
 (0)