@tsonic/express 10.0.40 → 10.0.41

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.
@@ -1,3 +1,4 @@
1
+ import type { int, long } from "@tsonic/core/types.js";
1
2
  // Generated by tsbindgen - Architecture
2
3
  // Namespace: express
3
4
  // Assembly: express
@@ -51,9 +52,9 @@ export interface Application$instance extends Router {
51
52
  get(name: string): unknown | undefined;
52
53
  get(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): Router;
53
54
  listen(path: string, callback?: () => void): AppServer;
54
- listen(port: number, callback?: () => void): AppServer;
55
- listen(port: number, host: string, callback?: () => void): AppServer;
56
- listen(port: number, host: string, backlog: number, callback?: () => void): AppServer;
55
+ listen(port: int, callback?: () => void): AppServer;
56
+ listen(port: int, host: string, callback?: () => void): AppServer;
57
+ listen(port: int, host: string, backlog: int, callback?: () => void): AppServer;
57
58
  param(names: string[], callback: ParamHandler): Application;
58
59
  param(name: string, callback: ParamHandler): Router;
59
60
  path(): string;
@@ -76,7 +77,7 @@ export interface AppServer$instance {
76
77
  readonly host: string | undefined;
77
78
  listening: boolean;
78
79
  readonly path: string | undefined;
79
- readonly port: number | undefined;
80
+ readonly port: int | undefined;
80
81
  close(callback?: (err: Error | undefined) => void): void;
81
82
  }
82
83
 
@@ -90,8 +91,8 @@ export type AppServer = AppServer$instance;
90
91
  export interface ByteRange$instance {
91
92
  readonly __tsonic_type_express_ByteRange: never;
92
93
 
93
- end: number;
94
- start: number;
94
+ end: long;
95
+ start: long;
95
96
  }
96
97
 
97
98
 
@@ -107,7 +108,7 @@ export interface CookieOptions {
107
108
  encode?: CookieEncoder;
108
109
  expires?: Date;
109
110
  httpOnly?: boolean;
110
- maxAge?: number;
111
+ maxAge?: long;
111
112
  partitioned?: boolean;
112
113
  path?: string;
113
114
  priority?: string;
@@ -138,9 +139,9 @@ export interface CorsOptions {
138
139
  allowedHeaders?: string[];
139
140
  credentials?: boolean;
140
141
  exposedHeaders?: string[];
141
- maxAgeSeconds?: number;
142
+ maxAgeSeconds?: int;
142
143
  methods?: string[];
143
- optionsSuccessStatus?: number;
144
+ optionsSuccessStatus?: int;
144
145
  origins?: string[];
145
146
  preflightContinue?: boolean;
146
147
  }
@@ -157,7 +158,7 @@ export interface DownloadOptions {
157
158
  headers?: Record<string, string>;
158
159
  immutable?: boolean;
159
160
  lastModified?: boolean;
160
- maxAge?: string | number;
161
+ maxAge?: string | long;
161
162
  root?: string;
162
163
  }
163
164
 
@@ -183,7 +184,7 @@ export interface FileStat$instance {
183
184
  readonly __tsonic_type_express_FileStat: never;
184
185
 
185
186
  modifiedAt: Date;
186
- size: number;
187
+ size: long;
187
188
  }
188
189
 
189
190
 
@@ -196,7 +197,7 @@ export type FileStat = FileStat$instance;
196
197
 
197
198
  export interface JsonOptions {
198
199
  inflate?: boolean;
199
- limit?: string | number;
200
+ limit?: string | long;
200
201
  reviver?: unknown;
201
202
  strict?: boolean;
202
203
  type?: string | string[] | MediaTypeMatcher;
@@ -212,7 +213,7 @@ export interface Multipart$instance {
212
213
  readonly __tsonic_type_express_Multipart: never;
213
214
 
214
215
  any(): RequestHandler;
215
- array(name: string, maxCount?: number | undefined): RequestHandler;
216
+ array(name: string, maxCount?: int | undefined): RequestHandler;
216
217
  fields(fields: MultipartField[]): RequestHandler;
217
218
  none(): RequestHandler;
218
219
  single(name: string): RequestHandler;
@@ -227,7 +228,7 @@ export const Multipart: {
227
228
  export type Multipart = Multipart$instance;
228
229
 
229
230
  export interface MultipartField {
230
- maxCount?: number;
231
+ maxCount?: int;
231
232
  name: string;
232
233
  }
233
234
 
@@ -237,8 +238,8 @@ export const MultipartField: {
237
238
  };
238
239
 
239
240
  export interface MultipartOptions {
240
- maxFileCount?: number;
241
- maxFileSizeBytes?: number;
241
+ maxFileCount?: int;
242
+ maxFileSizeBytes?: long;
242
243
  type?: string;
243
244
  }
244
245
 
@@ -286,7 +287,7 @@ export type RangeResult = RangeResult$instance;
286
287
 
287
288
  export interface RawOptions {
288
289
  inflate?: boolean;
289
- limit?: string | number;
290
+ limit?: string | long;
290
291
  type?: string | string[] | MediaTypeMatcher;
291
292
  verify?: VerifyBodyHandler;
292
293
  }
@@ -337,7 +338,7 @@ export interface Request$instance {
337
338
  header(field: string): string | undefined;
338
339
  is(...types: string[]): string | false | undefined;
339
340
  param(name: string): string | undefined;
340
- range(size: number, options?: RangeOptions): RangeResult | -1;
341
+ range(size: long, options?: RangeOptions): RangeResult | -1;
341
342
  setHeader(name: string, value: string): void;
342
343
  }
343
344
 
@@ -357,7 +358,7 @@ export interface Response$instance {
357
358
  readonly locals: Record<string, unknown | undefined>;
358
359
  get req(): Request | undefined;
359
360
  set req(value: Request | undefined);
360
- statusCode: number;
361
+ statusCode: int;
361
362
  append(field: string, value: string): Response;
362
363
  append(field: string, values: readonly string[]): Response;
363
364
  attachment(filename?: string): Response;
@@ -374,17 +375,17 @@ export interface Response$instance {
374
375
  links(links: Record<string, string>): Response;
375
376
  location(path: string): Response;
376
377
  redirect(path: string): Response;
377
- redirect(status: number, path: string): Response;
378
+ redirect(status: int, path: string): Response;
378
379
  render(view: string): Response;
379
380
  render(view: string, viewLocals: Record<string, unknown>): Response;
380
381
  render(view: string, callback: (err: Error | undefined, html: string | undefined) => void): Response;
381
382
  render(view: string, viewLocals: Record<string, unknown>, callback: (err: Error | undefined, html: string | undefined) => void): Response;
382
383
  send(body?: unknown): Response;
383
384
  sendFile(path: string, options?: SendFileOptions, fn?: (err: Error | undefined) => void): Response;
384
- sendStatus(code: number): Response;
385
+ sendStatus(code: int): Response;
385
386
  set(field: string, value: unknown): Response;
386
387
  set(fields: Record<string, string>): Response;
387
- status(code: number): Response;
388
+ status(code: int): Response;
388
389
  type(type: string): Response;
389
390
  vary(field: string): Response;
390
391
  }
@@ -503,7 +504,7 @@ export interface SendFileOptions {
503
504
  headers?: Record<string, string>;
504
505
  immutable?: boolean;
505
506
  lastModified?: boolean;
506
- maxAge?: string | number;
507
+ maxAge?: string | long;
507
508
  root?: string;
508
509
  }
509
510
 
@@ -522,7 +523,7 @@ export interface StaticOptions {
522
523
  immutable?: boolean;
523
524
  index?: string | string[] | false;
524
525
  lastModified?: boolean;
525
- maxAge?: string | number;
526
+ maxAge?: string | long;
526
527
  redirect?: boolean;
527
528
  setHeaders?: SetHeadersHandler;
528
529
  }
@@ -535,7 +536,7 @@ export const StaticOptions: {
535
536
  export interface TextOptions {
536
537
  defaultCharset?: string;
537
538
  inflate?: boolean;
538
- limit?: string | number;
539
+ limit?: string | long;
539
540
  type?: string | string[] | MediaTypeMatcher;
540
541
  verify?: VerifyBodyHandler;
541
542
  }
@@ -551,7 +552,7 @@ export interface UploadedFile$instance {
551
552
  readonly fieldname: string;
552
553
  readonly mimetype: string;
553
554
  readonly originalname: string;
554
- readonly size: number;
555
+ readonly size: long;
555
556
  bytes(): Promise<Uint8Array>;
556
557
  save(path: string): Promise<void>;
557
558
  text(): Promise<string>;
@@ -565,11 +566,11 @@ export const UploadedFile: {
565
566
  export type UploadedFile = UploadedFile$instance;
566
567
 
567
568
  export interface UrlEncodedOptions {
568
- depth?: number;
569
+ depth?: int;
569
570
  extended?: boolean;
570
571
  inflate?: boolean;
571
- limit?: string | number;
572
- parameterLimit?: number;
572
+ limit?: string | long;
573
+ parameterLimit?: int;
573
574
  type?: string | string[] | MediaTypeMatcher;
574
575
  verify?: VerifyBodyHandler;
575
576
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/express",
3
- "version": "10.0.40",
3
+ "version": "10.0.41",
4
4
  "description": "TypeScript type definitions for Express.js style API on ASP.NET Core",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -31,6 +31,6 @@
31
31
  "LICENSE"
32
32
  ],
33
33
  "dependencies": {
34
- "@tsonic/js": "10.0.45"
34
+ "@tsonic/js": "10.0.46"
35
35
  }
36
36
  }
@@ -9,7 +9,7 @@
9
9
  "packageReferences": [
10
10
  {
11
11
  "id": "Tsonic.Express",
12
- "version": "1.1.2",
12
+ "version": "1.1.3",
13
13
  "types": "@tsonic/express"
14
14
  }
15
15
  ]