@tsonic/express 10.0.26 → 10.0.28
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 +65 -16
- package/docs/snippets/10/cookies.ts +8 -0
- package/docs/snippets/10/cors.ts +2 -0
- package/docs/snippets/10/create-app-router.ts +1 -1
- package/docs/snippets/10/error-middleware.ts +1 -1
- package/docs/snippets/10/hello-world-app.ts +1 -2
- package/docs/snippets/10/middleware.ts +2 -3
- package/docs/snippets/10/multipart.ts +8 -0
- package/docs/snippets/10/quick-start-app.ts +1 -2
- package/docs/snippets/10/routing.ts +18 -6
- package/index/bindings.json +2407 -6409
- package/index/internal/index.d.ts +132 -233
- package/index.d.ts +8 -7
- package/package.json +3 -3
- package/tsonic.bindings.json +9 -2
|
@@ -7,6 +7,7 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
|
|
|
7
7
|
|
|
8
8
|
// Import types from other namespaces
|
|
9
9
|
import type { Dictionary_2, IEnumerable_1, List_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
10
|
+
import type { Stream } from "@tsonic/dotnet/System.IO/internal/index.js";
|
|
10
11
|
import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
11
12
|
import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
12
13
|
import type { Task } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
@@ -16,43 +17,22 @@ import type { Action, Action_1, Action_2, AsyncCallback, Boolean as ClrBoolean,
|
|
|
16
17
|
export type CookieEncoder = (value: string) => string;
|
|
17
18
|
|
|
18
19
|
|
|
19
|
-
export type ErrorRequestHandler = (err: Exception, req: Request, res: Response, next: NextFunction) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export type ErrorRequestHandlerReturn = (err: Exception, req: Request, res: Response, next: NextFunction) => unknown | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export type ErrorRequestHandlerSync = (err: Exception, req: Request, res: Response, next: NextFunction) => void;
|
|
20
|
+
export type ErrorRequestHandler = (err: Exception, req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
26
21
|
|
|
27
22
|
|
|
28
23
|
export type MediaTypeMatcher = (req: Request) => boolean;
|
|
29
24
|
|
|
30
25
|
|
|
31
|
-
export type NextFunction = (control?: string) =>
|
|
26
|
+
export type NextFunction = (control?: string) => Promise<void>;
|
|
32
27
|
|
|
33
28
|
|
|
34
|
-
export type ParamHandler = (req: Request, res: Response, next: NextFunction, value: unknown, name: string) =>
|
|
29
|
+
export type ParamHandler = (req: Request, res: Response, next: NextFunction, value: unknown, name: string) => Promise<void>;
|
|
35
30
|
|
|
36
31
|
|
|
37
32
|
export type QueryParser = (queryString: string) => unknown | undefined;
|
|
38
33
|
|
|
39
34
|
|
|
40
|
-
export type RequestHandler = (req: Request, res: Response, next: NextFunction) =>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export type RequestHandlerReturn = (req: Request, res: Response, next: NextFunction) => unknown | undefined;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export type RequestHandlerSync = (req: Request, res: Response, next: NextFunction) => void;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export type RouteHandler = (req: Request, res: Response) => Task;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
export type RouteHandlerReturn = (req: Request, res: Response) => unknown | undefined;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export type RouteHandlerSync = (req: Request, res: Response) => void;
|
|
35
|
+
export type RequestHandler = (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
56
36
|
|
|
57
37
|
|
|
58
38
|
export type SetHeadersHandler = (res: Response, path: string, stat: FileStat) => void;
|
|
@@ -79,12 +59,7 @@ export interface Application$instance extends Router {
|
|
|
79
59
|
enabled(name: string): boolean;
|
|
80
60
|
engine(ext: string, callback: TemplateEngine): Application;
|
|
81
61
|
get(name: string): unknown | undefined;
|
|
82
|
-
get(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Router;
|
|
83
|
-
get(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Router;
|
|
84
|
-
get(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Router;
|
|
85
62
|
get(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Router;
|
|
86
|
-
get(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Router;
|
|
87
|
-
get(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Router;
|
|
88
63
|
listen(path: string, callback?: Action): AppServer;
|
|
89
64
|
listen(port: int, callback?: Action): AppServer;
|
|
90
65
|
listen(port: int, host: string, callback?: Action): AppServer;
|
|
@@ -166,6 +141,44 @@ export const CookieOptions: {
|
|
|
166
141
|
|
|
167
142
|
export type CookieOptions = CookieOptions$instance;
|
|
168
143
|
|
|
144
|
+
export interface Cookies$instance {
|
|
145
|
+
readonly __tsonic_type_express_Cookies: never;
|
|
146
|
+
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
export const Cookies: {
|
|
151
|
+
new(): Cookies;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
export type Cookies = Cookies$instance & { readonly [key: string]: string | undefined; };
|
|
156
|
+
|
|
157
|
+
export interface CorsOptions$instance {
|
|
158
|
+
readonly __tsonic_type_express_CorsOptions: never;
|
|
159
|
+
|
|
160
|
+
get allowedHeaders(): string[] | undefined;
|
|
161
|
+
set allowedHeaders(value: string[] | undefined);
|
|
162
|
+
credentials: boolean;
|
|
163
|
+
get exposedHeaders(): string[] | undefined;
|
|
164
|
+
set exposedHeaders(value: string[] | undefined);
|
|
165
|
+
maxAgeSeconds: Nullable_1<System_Internal.Int32>;
|
|
166
|
+
get methods(): string[] | undefined;
|
|
167
|
+
set methods(value: string[] | undefined);
|
|
168
|
+
optionsSuccessStatus: int;
|
|
169
|
+
get origins(): string[] | undefined;
|
|
170
|
+
set origins(value: string[] | undefined);
|
|
171
|
+
preflightContinue: boolean;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
export const CorsOptions: {
|
|
176
|
+
new(): CorsOptions;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
export type CorsOptions = CorsOptions$instance;
|
|
181
|
+
|
|
169
182
|
export interface DownloadOptions$instance {
|
|
170
183
|
readonly __tsonic_type_express_DownloadOptions: never;
|
|
171
184
|
|
|
@@ -188,6 +201,19 @@ export const DownloadOptions: {
|
|
|
188
201
|
|
|
189
202
|
export type DownloadOptions = DownloadOptions$instance;
|
|
190
203
|
|
|
204
|
+
export interface Files$instance {
|
|
205
|
+
readonly __tsonic_type_express_Files: never;
|
|
206
|
+
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
export const Files: {
|
|
211
|
+
new(): Files;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
export type Files = Files$instance & { readonly [field: string]: UploadedFile[] | undefined; };
|
|
216
|
+
|
|
191
217
|
export interface FileStat$instance {
|
|
192
218
|
readonly __tsonic_type_express_FileStat: never;
|
|
193
219
|
|
|
@@ -226,6 +252,55 @@ export const JsonOptions: {
|
|
|
226
252
|
|
|
227
253
|
export type JsonOptions = JsonOptions$instance;
|
|
228
254
|
|
|
255
|
+
export interface Multipart$instance {
|
|
256
|
+
readonly __tsonic_type_express_Multipart: never;
|
|
257
|
+
|
|
258
|
+
any(): RequestHandler;
|
|
259
|
+
array(name: string, maxCount?: Nullable_1<System_Internal.Int32>): RequestHandler;
|
|
260
|
+
fields(fields: MultipartField[]): RequestHandler;
|
|
261
|
+
none(): RequestHandler;
|
|
262
|
+
single(name: string): RequestHandler;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
export const Multipart: {
|
|
267
|
+
new(options: MultipartOptions): Multipart;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
export type Multipart = Multipart$instance;
|
|
272
|
+
|
|
273
|
+
export interface MultipartField$instance {
|
|
274
|
+
readonly __tsonic_type_express_MultipartField: never;
|
|
275
|
+
|
|
276
|
+
maxCount: Nullable_1<System_Internal.Int32>;
|
|
277
|
+
name: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
export const MultipartField: {
|
|
282
|
+
new(): MultipartField;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
export type MultipartField = MultipartField$instance;
|
|
287
|
+
|
|
288
|
+
export interface MultipartOptions$instance {
|
|
289
|
+
readonly __tsonic_type_express_MultipartOptions: never;
|
|
290
|
+
|
|
291
|
+
maxFileCount: Nullable_1<System_Internal.Int32>;
|
|
292
|
+
maxFileSizeBytes: Nullable_1<System_Internal.Int64>;
|
|
293
|
+
type: string;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
export const MultipartOptions: {
|
|
298
|
+
new(): MultipartOptions;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
export type MultipartOptions = MultipartOptions$instance;
|
|
303
|
+
|
|
229
304
|
export interface Params$instance {
|
|
230
305
|
readonly __tsonic_type_express_Params: never;
|
|
231
306
|
|
|
@@ -296,7 +371,10 @@ export interface Request$instance {
|
|
|
296
371
|
baseUrl: string;
|
|
297
372
|
get body(): unknown | undefined;
|
|
298
373
|
set body(value: unknown | undefined);
|
|
299
|
-
cookies:
|
|
374
|
+
readonly cookies: Cookies;
|
|
375
|
+
get file(): UploadedFile | undefined;
|
|
376
|
+
set file(value: UploadedFile | undefined);
|
|
377
|
+
readonly files: Files;
|
|
300
378
|
fresh: boolean;
|
|
301
379
|
host: string;
|
|
302
380
|
hostname: string;
|
|
@@ -314,7 +392,7 @@ export interface Request$instance {
|
|
|
314
392
|
set route(value: Route | undefined);
|
|
315
393
|
readonly secure: boolean;
|
|
316
394
|
signed: boolean;
|
|
317
|
-
signedCookies:
|
|
395
|
+
readonly signedCookies: Cookies;
|
|
318
396
|
readonly stale: boolean;
|
|
319
397
|
subdomains: List_1<System_Internal.String>;
|
|
320
398
|
xhr: boolean;
|
|
@@ -390,90 +468,20 @@ export interface Route$instance extends RoutingHost_1<Route> {
|
|
|
390
468
|
readonly __tsonic_type_express_Route: never;
|
|
391
469
|
|
|
392
470
|
readonly path: unknown;
|
|
393
|
-
all(callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
394
|
-
all(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
395
|
-
all(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
396
471
|
all(callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
397
|
-
all(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
398
|
-
all(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
399
|
-
all(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
400
|
-
all(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
401
|
-
all(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
402
472
|
all(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
403
|
-
all(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
404
|
-
all(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
405
|
-
delete(callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
406
|
-
delete(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
407
|
-
delete(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
408
473
|
delete(callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
409
|
-
delete(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
410
|
-
delete(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
411
|
-
delete(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
412
|
-
delete(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
413
|
-
delete(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
414
474
|
delete(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
415
|
-
delete(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
416
|
-
delete(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
417
|
-
get(callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
418
|
-
get(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
419
|
-
get(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
420
475
|
get(callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
421
|
-
get(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
422
|
-
get(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
423
|
-
get(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
424
|
-
get(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
425
|
-
get(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
426
476
|
get(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
427
|
-
get(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
428
|
-
get(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
429
|
-
options(callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
430
|
-
options(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
431
|
-
options(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
432
477
|
options(callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
433
|
-
options(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
434
|
-
options(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
435
|
-
options(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
436
|
-
options(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
437
|
-
options(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
438
478
|
options(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
439
|
-
options(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
440
|
-
options(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
441
|
-
patch(callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
442
|
-
patch(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
443
|
-
patch(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
444
479
|
patch(callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
445
|
-
patch(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
446
|
-
patch(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
447
|
-
patch(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
448
|
-
patch(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
449
|
-
patch(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
450
480
|
patch(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
451
|
-
patch(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
452
|
-
patch(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
453
|
-
post(callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
454
|
-
post(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
455
|
-
post(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
456
481
|
post(callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
457
|
-
post(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
458
|
-
post(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
459
|
-
post(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
460
|
-
post(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
461
|
-
post(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
462
482
|
post(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
463
|
-
post(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
464
|
-
post(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
465
|
-
put(callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
466
|
-
put(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
467
|
-
put(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
468
483
|
put(callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
469
|
-
put(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
470
|
-
put(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
471
|
-
put(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): Route;
|
|
472
|
-
put(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): Route;
|
|
473
|
-
put(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): Route;
|
|
474
484
|
put(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Route;
|
|
475
|
-
put(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): Route;
|
|
476
|
-
put(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Route;
|
|
477
485
|
}
|
|
478
486
|
|
|
479
487
|
|
|
@@ -489,10 +497,8 @@ export interface Router$instance extends RoutingHost_1<Router> {
|
|
|
489
497
|
param(name: string, callback: ParamHandler): Router;
|
|
490
498
|
use(callback: Router): Router;
|
|
491
499
|
use(callback: RequestHandler, ...callbacks: RequestHandler[]): Router;
|
|
492
|
-
use(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Router;
|
|
493
500
|
use(path: string, callback: Router): Router;
|
|
494
501
|
use(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Router;
|
|
495
|
-
use(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): Router;
|
|
496
502
|
}
|
|
497
503
|
|
|
498
504
|
|
|
@@ -522,166 +528,37 @@ export type RouterOptions = RouterOptions$instance;
|
|
|
522
528
|
export interface RoutingHost_1$instance<TSelf extends RoutingHost_1<TSelf>> {
|
|
523
529
|
readonly __tsonic_type_express_RoutingHost_1: never;
|
|
524
530
|
|
|
525
|
-
all(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
526
|
-
all(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
527
|
-
all(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
528
531
|
all(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
529
|
-
all(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
530
|
-
all(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
531
|
-
checkout(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
532
|
-
checkout(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
533
|
-
checkout(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
534
532
|
checkout(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
535
|
-
checkout(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
536
|
-
checkout(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
537
|
-
copy(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
538
|
-
copy(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
539
|
-
copy(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
540
533
|
copy(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
541
|
-
copy(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
542
|
-
copy(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
543
|
-
delete(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
544
|
-
delete(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
545
|
-
delete(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
546
534
|
delete(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
547
|
-
delete(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
548
|
-
delete(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
549
|
-
get(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
550
|
-
get(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
551
|
-
get(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
552
535
|
get(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
553
|
-
get(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
554
|
-
get(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
555
|
-
head(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
556
|
-
head(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
557
|
-
head(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
558
536
|
head(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
559
|
-
head(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
560
|
-
head(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
561
|
-
lock_(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
562
|
-
lock_(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
563
|
-
lock_(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
564
537
|
lock_(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
565
|
-
lock_(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
566
|
-
lock_(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
567
|
-
m_search(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
568
|
-
m_search(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
569
|
-
m_search(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
570
538
|
m_search(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
571
|
-
m_search(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
572
|
-
m_search(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
573
|
-
merge(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
574
|
-
merge(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
575
|
-
merge(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
576
539
|
merge(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
577
|
-
merge(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
578
|
-
merge(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
579
|
-
method(method: string, path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
580
|
-
method(method: string, path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
581
|
-
method(method: string, path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
582
540
|
method(method: string, path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
583
|
-
method(method: string, path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
584
|
-
method(method: string, path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
585
|
-
mkactivity(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
586
|
-
mkactivity(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
587
|
-
mkactivity(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
588
541
|
mkactivity(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
589
|
-
mkactivity(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
590
|
-
mkactivity(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
591
|
-
mkcol(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
592
|
-
mkcol(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
593
|
-
mkcol(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
594
542
|
mkcol(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
595
|
-
mkcol(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
596
|
-
mkcol(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
597
|
-
move(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
598
|
-
move(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
599
|
-
move(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
600
543
|
move(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
601
|
-
move(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
602
|
-
move(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
603
|
-
notify(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
604
|
-
notify(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
605
|
-
notify(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
606
544
|
notify(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
607
|
-
notify(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
608
|
-
notify(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
609
|
-
options(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
610
|
-
options(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
611
|
-
options(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
612
545
|
options(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
613
|
-
options(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
614
|
-
options(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
615
546
|
param(name: string, callback: ParamHandler): TSelf;
|
|
616
|
-
patch(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
617
|
-
patch(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
618
|
-
patch(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
619
547
|
patch(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
620
|
-
patch(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
621
|
-
patch(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
622
|
-
post(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
623
|
-
post(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
624
|
-
post(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
625
548
|
post(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
626
|
-
post(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
627
|
-
post(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
628
|
-
purge(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
629
|
-
purge(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
630
|
-
purge(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
631
549
|
purge(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
632
|
-
purge(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
633
|
-
purge(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
634
|
-
put(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
635
|
-
put(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
636
|
-
put(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
637
550
|
put(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
638
|
-
put(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
639
|
-
put(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
640
|
-
report(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
641
|
-
report(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
642
|
-
report(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
643
551
|
report(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
644
|
-
report(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
645
|
-
report(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
646
552
|
route(path: string): Route;
|
|
647
|
-
search(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
648
|
-
search(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
649
|
-
search(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
650
553
|
search(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
651
|
-
search(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
652
|
-
search(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
653
|
-
subscribe(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
654
|
-
subscribe(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
655
|
-
subscribe(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
656
554
|
subscribe(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
657
|
-
subscribe(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
658
|
-
subscribe(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
659
|
-
trace(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
660
|
-
trace(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
661
|
-
trace(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
662
555
|
trace(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
663
|
-
trace(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
664
|
-
trace(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
665
|
-
unlock(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
666
|
-
unlock(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
667
|
-
unlock(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
668
556
|
unlock(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
669
|
-
unlock(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
670
|
-
unlock(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
671
|
-
unsubscribe(path: string, callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
672
|
-
unsubscribe(path: string, callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
673
|
-
unsubscribe(path: string, callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
674
557
|
unsubscribe(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
675
|
-
unsubscribe(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
676
|
-
unsubscribe(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
677
558
|
use(callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
678
|
-
use(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
679
559
|
use(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
680
|
-
use(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
681
560
|
useError(callback: ErrorRequestHandler, ...callbacks: ErrorRequestHandler[]): TSelf;
|
|
682
|
-
useError(callback: ErrorRequestHandlerSync, ...callbacks: ErrorRequestHandlerSync[]): TSelf;
|
|
683
561
|
useError(path: string, callback: ErrorRequestHandler, ...callbacks: ErrorRequestHandler[]): TSelf;
|
|
684
|
-
useError(path: string, callback: ErrorRequestHandlerSync, ...callbacks: ErrorRequestHandlerSync[]): TSelf;
|
|
685
562
|
}
|
|
686
563
|
|
|
687
564
|
|
|
@@ -762,6 +639,25 @@ export const TextOptions: {
|
|
|
762
639
|
|
|
763
640
|
export type TextOptions = TextOptions$instance;
|
|
764
641
|
|
|
642
|
+
export interface UploadedFile$instance {
|
|
643
|
+
readonly __tsonic_type_express_UploadedFile: never;
|
|
644
|
+
|
|
645
|
+
readonly fieldname: string;
|
|
646
|
+
readonly mimetype: string;
|
|
647
|
+
readonly originalname: string;
|
|
648
|
+
readonly size: long;
|
|
649
|
+
copyToAsync(target: Stream): Task;
|
|
650
|
+
openReadStream(): Stream;
|
|
651
|
+
save(path: string): Task;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
export const UploadedFile: {
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
export type UploadedFile = UploadedFile$instance;
|
|
660
|
+
|
|
765
661
|
export interface UrlEncodedOptions$instance {
|
|
766
662
|
readonly __tsonic_type_express_UrlEncodedOptions: never;
|
|
767
663
|
|
|
@@ -788,8 +684,11 @@ export type UrlEncodedOptions = UrlEncodedOptions$instance;
|
|
|
788
684
|
export abstract class express$instance {
|
|
789
685
|
static app(): Application;
|
|
790
686
|
static application(): Application;
|
|
687
|
+
static cookieParser(secret: string): RequestHandler;
|
|
688
|
+
static cors(options?: CorsOptions): RequestHandler;
|
|
791
689
|
static create(): Application;
|
|
792
690
|
static json(options?: JsonOptions): RequestHandler;
|
|
691
|
+
static multipart(options?: MultipartOptions): Multipart;
|
|
793
692
|
static raw(options?: RawOptions): RequestHandler;
|
|
794
693
|
static Router(options?: RouterOptions): Router;
|
|
795
694
|
static static(root: string, options?: StaticOptions): RequestHandler;
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as Internal from './index/internal/index.js';
|
|
|
7
7
|
|
|
8
8
|
// Cross-namespace type imports for constraints
|
|
9
9
|
import type { Dictionary, IEnumerable, List } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
10
|
+
import type { Stream } from '@tsonic/dotnet/System.IO.js';
|
|
10
11
|
import type { Action, AsyncCallback, Boolean as ClrBoolean, Byte, DateTime, Exception, IAsyncResult, ICloneable, Int32, Int64, IntPtr, MulticastDelegate, Nullable, Object as ClrObject, String as ClrString, Void } from '@tsonic/dotnet/System.js';
|
|
11
12
|
import type { ISerializable } from '@tsonic/dotnet/System.Runtime.Serialization.js';
|
|
12
13
|
import type { Task } from '@tsonic/dotnet/System.Threading.Tasks.js';
|
|
@@ -16,14 +17,7 @@ export { Application as Application } from './index/internal/index.js';
|
|
|
16
17
|
export { AppServer as AppServer } from './index/internal/index.js';
|
|
17
18
|
export type NextFunction = Internal.NextFunction;
|
|
18
19
|
export type RequestHandler = Internal.RequestHandler;
|
|
19
|
-
export type RequestHandlerSync = Internal.RequestHandlerSync;
|
|
20
|
-
export type RequestHandlerReturn = Internal.RequestHandlerReturn;
|
|
21
|
-
export type RouteHandler = Internal.RouteHandler;
|
|
22
|
-
export type RouteHandlerSync = Internal.RouteHandlerSync;
|
|
23
|
-
export type RouteHandlerReturn = Internal.RouteHandlerReturn;
|
|
24
20
|
export type ErrorRequestHandler = Internal.ErrorRequestHandler;
|
|
25
|
-
export type ErrorRequestHandlerSync = Internal.ErrorRequestHandlerSync;
|
|
26
|
-
export type ErrorRequestHandlerReturn = Internal.ErrorRequestHandlerReturn;
|
|
27
21
|
export type ParamHandler = Internal.ParamHandler;
|
|
28
22
|
export type VerifyBodyHandler = Internal.VerifyBodyHandler;
|
|
29
23
|
export type MediaTypeMatcher = Internal.MediaTypeMatcher;
|
|
@@ -37,6 +31,9 @@ export { JsonOptions as JsonOptions } from './index/internal/index.js';
|
|
|
37
31
|
export { RawOptions as RawOptions } from './index/internal/index.js';
|
|
38
32
|
export { TextOptions as TextOptions } from './index/internal/index.js';
|
|
39
33
|
export { UrlEncodedOptions as UrlEncodedOptions } from './index/internal/index.js';
|
|
34
|
+
export { MultipartField as MultipartField } from './index/internal/index.js';
|
|
35
|
+
export { MultipartOptions as MultipartOptions } from './index/internal/index.js';
|
|
36
|
+
export { CorsOptions as CorsOptions } from './index/internal/index.js';
|
|
40
37
|
export { StaticOptions as StaticOptions } from './index/internal/index.js';
|
|
41
38
|
export { SendFileOptions as SendFileOptions } from './index/internal/index.js';
|
|
42
39
|
export { DownloadOptions as DownloadOptions } from './index/internal/index.js';
|
|
@@ -46,8 +43,12 @@ export { ByteRange as ByteRange } from './index/internal/index.js';
|
|
|
46
43
|
export { RangeResult as RangeResult } from './index/internal/index.js';
|
|
47
44
|
export { FileStat as FileStat } from './index/internal/index.js';
|
|
48
45
|
export { express$instance as express } from './index/internal/index.js';
|
|
46
|
+
export { Multipart as Multipart } from './index/internal/index.js';
|
|
47
|
+
export { Cookies as Cookies } from './index/internal/index.js';
|
|
48
|
+
export { Files as Files } from './index/internal/index.js';
|
|
49
49
|
export { Params as Params } from './index/internal/index.js';
|
|
50
50
|
export { Request as Request } from './index/internal/index.js';
|
|
51
|
+
export { UploadedFile as UploadedFile } from './index/internal/index.js';
|
|
51
52
|
export { Response as Response } from './index/internal/index.js';
|
|
52
53
|
export { Route as Route } from './index/internal/index.js';
|
|
53
54
|
export { Router as Router } from './index/internal/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/express",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.28",
|
|
4
4
|
"description": "TypeScript type definitions for Express.js style API on ASP.NET Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "https://github.com/tsoniclang/express.git"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@tsonic/dotnet": "10.0.
|
|
23
|
-
"@tsonic/core": "10.0.
|
|
22
|
+
"@tsonic/dotnet": "10.0.26",
|
|
23
|
+
"@tsonic/core": "10.0.26"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/tsonic.bindings.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dotnet": {
|
|
3
3
|
"frameworkReferences": [
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
"id": "Microsoft.AspNetCore.App",
|
|
6
|
+
"types": "@tsonic/aspnetcore"
|
|
7
|
+
}
|
|
5
8
|
],
|
|
6
9
|
"packageReferences": [
|
|
7
|
-
{
|
|
10
|
+
{
|
|
11
|
+
"id": "Tsonic.Express",
|
|
12
|
+
"version": "1.1.0",
|
|
13
|
+
"types": "@tsonic/express"
|
|
14
|
+
}
|
|
8
15
|
]
|
|
9
16
|
}
|
|
10
17
|
}
|