@tsonic/express 10.0.25 → 10.0.26
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/README.md +6 -2
- package/docs/snippets/10/create-app-router.ts +5 -0
- package/docs/snippets/10/routing.ts +1 -2
- package/index/bindings.json +484 -311
- package/index/internal/index.d.ts +20 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/tsonic.bindings.json +1 -1
|
@@ -226,6 +226,19 @@ export const JsonOptions: {
|
|
|
226
226
|
|
|
227
227
|
export type JsonOptions = JsonOptions$instance;
|
|
228
228
|
|
|
229
|
+
export interface Params$instance {
|
|
230
|
+
readonly __tsonic_type_express_Params: never;
|
|
231
|
+
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
export const Params: {
|
|
236
|
+
new(): Params;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
export type Params = Params$instance & { readonly [key: string]: string | undefined; };
|
|
241
|
+
|
|
229
242
|
export interface RangeOptions$instance {
|
|
230
243
|
readonly __tsonic_type_express_RangeOptions: never;
|
|
231
244
|
|
|
@@ -291,7 +304,7 @@ export interface Request$instance {
|
|
|
291
304
|
ips: List_1<System_Internal.String>;
|
|
292
305
|
method: string;
|
|
293
306
|
originalUrl: string;
|
|
294
|
-
params:
|
|
307
|
+
readonly params: Params;
|
|
295
308
|
path: string;
|
|
296
309
|
protocol: string;
|
|
297
310
|
query: Dictionary_2<System_Internal.String, unknown | undefined>;
|
|
@@ -474,6 +487,12 @@ export interface Router$instance extends RoutingHost_1<Router> {
|
|
|
474
487
|
readonly __tsonic_type_express_Router: never;
|
|
475
488
|
|
|
476
489
|
param(name: string, callback: ParamHandler): Router;
|
|
490
|
+
use(callback: Router): Router;
|
|
491
|
+
use(callback: RequestHandler, ...callbacks: RequestHandler[]): Router;
|
|
492
|
+
use(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Router;
|
|
493
|
+
use(path: string, callback: Router): Router;
|
|
494
|
+
use(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Router;
|
|
495
|
+
use(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Router;
|
|
477
496
|
}
|
|
478
497
|
|
|
479
498
|
|
package/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export { ByteRange as ByteRange } from './index/internal/index.js';
|
|
|
46
46
|
export { RangeResult as RangeResult } from './index/internal/index.js';
|
|
47
47
|
export { FileStat as FileStat } from './index/internal/index.js';
|
|
48
48
|
export { express$instance as express } from './index/internal/index.js';
|
|
49
|
+
export { Params as Params } from './index/internal/index.js';
|
|
49
50
|
export { Request as Request } from './index/internal/index.js';
|
|
50
51
|
export { Response as Response } from './index/internal/index.js';
|
|
51
52
|
export { Route as Route } from './index/internal/index.js';
|
package/package.json
CHANGED
package/tsonic.bindings.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{ "id": "Microsoft.AspNetCore.App", "types": "@tsonic/aspnetcore" }
|
|
5
5
|
],
|
|
6
6
|
"packageReferences": [
|
|
7
|
-
{ "id": "Tsonic.Express", "version": "1.0.
|
|
7
|
+
{ "id": "Tsonic.Express", "version": "1.0.10", "types": "@tsonic/express" }
|
|
8
8
|
]
|
|
9
9
|
}
|
|
10
10
|
}
|