@sjoblomtobias/relay 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.d.ts +1 -1
- package/package.json +5 -3
- package/src/server.ts +2 -1
- package/tsconfig.test.json +10 -0
package/dist/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import express from "express";
|
|
2
2
|
import type { Route } from "./route.js";
|
|
3
3
|
import type { RequestHandler } from "express";
|
|
4
|
-
export type RouteConstructor = new (
|
|
4
|
+
export type RouteConstructor = new (...args: any[]) => Route;
|
|
5
5
|
export declare class Server {
|
|
6
6
|
private port;
|
|
7
7
|
private app;
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjoblomtobias/relay",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc",
|
|
8
8
|
"dev": "tsx --watch test/index.ts",
|
|
9
9
|
"lint": "eslint src",
|
|
10
|
-
"format": "prettier --write src"
|
|
10
|
+
"format": "prettier --write src",
|
|
11
|
+
"typecheck:test": "tsc -p tsconfig.test.json",
|
|
12
|
+
"prepublishOnly": "npm run build && npm run lint && npm run typecheck:test"
|
|
11
13
|
},
|
|
12
14
|
"author": "Tobias Sjöblom",
|
|
13
15
|
"license": "Pirate",
|
|
14
|
-
"description": "A lightweight TypeScript framework for building structured Express applications with decorator-based routing
|
|
16
|
+
"description": "A lightweight TypeScript framework for building structured Express applications with decorator-based routing.",
|
|
15
17
|
"keywords": [
|
|
16
18
|
"express",
|
|
17
19
|
"typescript",
|
package/src/server.ts
CHANGED
|
@@ -2,7 +2,8 @@ import express from "express";
|
|
|
2
2
|
import type { Route } from "./route.js";
|
|
3
3
|
import type { ErrorRequestHandler, RequestHandler } from "express";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
export type RouteConstructor = new (...args: any[]) => Route;
|
|
6
7
|
|
|
7
8
|
export class Server {
|
|
8
9
|
private port: number;
|