Skip to content

Commit a485e7e

Browse files
committed
inline return type declaration
1 parent 263f867 commit a485e7e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
type IncrementKey = 'ArrowRight' | 'ArrowDown'
22
type DecrementKey = 'ArrowUp' | 'ArrowLeft'
3-
type NavigationDirection = [IncrementKey, DecrementKey]
43

54
function getTabs(el: TabContainerElement): HTMLElement[] {
65
return Array.from(el.querySelectorAll<HTMLElement>('[role="tablist"] [role="tab"]')).filter(
76
tab => tab instanceof HTMLElement && tab.closest(el.tagName) === el
87
)
98
}
109

11-
function getNavigationKeys(vertical: boolean): NavigationDirection {
10+
function getNavigationKeys(vertical: boolean): [IncrementKey, DecrementKey] {
1211
if (vertical) {
1312
return ['ArrowDown', 'ArrowUp']
1413
} else {

0 commit comments

Comments
 (0)