Skip to content

Commit a13db08

Browse files
authored
Merge pull request #14 from github/add-typescript-definition-file
Add typescript definition file
2 parents 33aad20 + 0cd9d9d commit a13db08

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export function install(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement): void;
2+
export function navigate(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement, indexDiff?: -1 | 1): void;
3+
export function uninstall(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement): void;
4+
export function clearSelection(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement): void;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
"version": "0.3.3",
55
"main": "dist/combobox-nav.umd.js",
66
"module": "dist/combobox-nav.esm.js",
7+
"types": "index.d.ts",
78
"license": "MIT",
89
"repository": "github/combobox-nav",
910
"files": [
10-
"dist"
11+
"dist",
12+
"index.d.ts"
1113
],
1214
"scripts": {
1315
"clean": "rm -rf dist",

0 commit comments

Comments
 (0)