Skip to content

Commit f038523

Browse files
kuitosterkelg
authored andcommitted
add typing declaration
1 parent b7ec334 commit f038523

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

index.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type Options = {
2+
cwd?: string;
3+
dot?: boolean;
4+
absolute?: boolean;
5+
filesOnly?: boolean;
6+
flush?: boolean;
7+
};
8+
9+
type FilePath = string;
10+
11+
declare function glob(str: string, opts?: Options): Promise<FilePath[]>;
12+
13+
export = glob;

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@
3232
"devDependencies": {
3333
"tap-spec": "^4.1.1",
3434
"tape": "^4.8.0"
35-
}
35+
},
36+
"types": "./index.d.ts"
3637
}

0 commit comments

Comments
 (0)