Skip to content

Commit

Permalink
Updating type def
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jul 24, 2024
1 parent c25a0d6 commit b0b8921
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 18.2.8
* @version 18.2.9
*/
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion dist/woodland.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 18.2.8
* @version 18.2.9
*/
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion dist/woodland.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 18.2.8
* @version 18.2.9
*/
import {STATUS_CODES,METHODS}from'node:http';import {join,extname}from'node:path';import {EventEmitter}from'node:events';import {stat,readdir}from'node:fs/promises';import {etag}from'tiny-etag';import {precise}from'precise';import {lru}from'tiny-lru';import {createRequire}from'node:module';import {fileURLToPath,URL}from'node:url';import {readFileSync,createReadStream}from'node:fs';import {coerce}from'tiny-coerce';import mimeDb from'mime-db';const __dirname$1 = fileURLToPath(new URL(".", import.meta.url));
const require = createRequire(import.meta.url);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woodland",
"version": "18.2.8",
"version": "18.2.9",
"description": "Lightweight HTTP framework with automatic headers",
"type": "module",
"types": "types/woodland.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions types/woodland.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export class Woodland {
routes(uri: any, method: any, override?: boolean): any;
send(req: any, res: any): (body?: string, status?: any, headers?: {}) => void;
set(res: any): (arg?: {}) => any;
serve(req: any, res: any, arg?: string, folder?: any, index?: string[]): Promise<void>;
serve(req: any, res: any, arg: string, folder?: string): Promise<void>;
status(res: any): (arg?: number) => any;
staticFiles(root?: string): void;
staticFiles(root: string, folder?: string): void;
trace(...args: any[]): this;
use(rpath: any, ...fn: any[]): this;
}

0 comments on commit b0b8921

Please sign in to comment.