Skip to content

Commit 014e98f

Browse files
keithamusdgraham
andauthored
style: add return type annotation for getButtons function
Co-Authored-By: David Graham <[email protected]>
1 parent 7fef62f commit 014e98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @flow strict */
22

33
const buttonSelectors = ['[data-md-button]']
4-
function getButtons(toolbar: Element) {
4+
function getButtons(toolbar: Element): Element[] {
55
const els = []
66
for (const button of toolbar.querySelectorAll(buttonSelectors.join(', '))) {
77
if (button.closest('markdown-toolbar') === toolbar) els.push(button)

0 commit comments

Comments
 (0)