Skip to content

Commit

Permalink
chore: add typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ternakkode committed Jul 31, 2024
1 parent 3d6ba00 commit 3187875
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export declare function tunnel(req: any, res: any, next: any): void;
export declare function _static(dir: any): (req: any, res: any, next: any) => void;
export { _static as static };
export declare function multipart(options: any): {
single: (name: any) => (req: any, res: any, next: any) => void;
array: (name: any) => (req: any, res: any, next: any) => void;
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.12",
"description": "The Middleware portion of the Layer8 pipeline",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "echo \"Testing goes here...\" && exit 0"
},
Expand Down Expand Up @@ -30,6 +31,7 @@
"files": [
"index.js",
"./dist/middleware.json",
"./dist/wasm_exec.js"
"./dist/wasm_exec.js",
"index.d.ts"
]
}

0 comments on commit 3187875

Please sign in to comment.