Skip to content

Commit 506c98d

Browse files
authored
Merge pull request #50 from douira/patch-1
Add Typescript support
2 parents e868e55 + 5296e8d commit 506c98d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.d.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
declare namespace appRootPath {
2+
export function resolve(pathToModule: string): string
3+
export function require(pathToModule: string): ReturnType<NodeRequire>
4+
export function toString(): string
5+
export function setPath(explicitlySetPath: string): void
6+
export const path: string
7+
}
8+
export = appRootPath

0 commit comments

Comments
 (0)