@tsonic/nodejs 10.0.1 → 10.0.2

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.
@@ -47,19 +47,18 @@ export interface ClientRequest$instance extends EventEmitter {
47
47
 
48
48
 
49
49
  export const ClientRequest: {
50
- new(): ClientRequest;
51
50
  };
52
51
 
53
52
 
54
53
  export type ClientRequest = ClientRequest$instance;
55
54
 
56
55
  export interface IncomingMessage$instance extends EventEmitter {
57
- readonly complete: boolean;
56
+ complete: boolean;
58
57
  readonly headers: Dictionary<System_Internal.String, System_Internal.String>;
59
58
  readonly httpVersion: string;
60
- readonly method: string;
59
+ readonly method: string | undefined;
61
60
  readonly statusCode: Nullable<System_Internal.Int32>;
62
- readonly statusMessage: string;
61
+ readonly statusMessage: string | undefined;
63
62
  readonly url: string | undefined;
64
63
  destroy(): void;
65
64
  onClose(callback: Action): void;
@@ -71,7 +70,6 @@ export interface IncomingMessage$instance extends EventEmitter {
71
70
 
72
71
 
73
72
  export const IncomingMessage: {
74
- new(): IncomingMessage;
75
73
  };
76
74
 
77
75
 
@@ -79,14 +77,18 @@ export type IncomingMessage = IncomingMessage$instance;
79
77
 
80
78
  export interface RequestOptions$instance {
81
79
  get agent(): unknown | undefined;
82
- set agent(value: unknown);
80
+ set agent(value: unknown | undefined);
83
81
  get auth(): string | undefined;
84
- set auth(value: string);
85
- headers: Dictionary<System_Internal.String, System_Internal.String>;
86
- host: string;
87
- hostname: string;
82
+ set auth(value: string | undefined);
83
+ get headers(): Dictionary<System_Internal.String, System_Internal.String> | undefined;
84
+ set headers(value: Dictionary<System_Internal.String, System_Internal.String> | undefined);
85
+ get host(): string | undefined;
86
+ set host(value: string | undefined);
87
+ get hostname(): string | undefined;
88
+ set hostname(value: string | undefined);
88
89
  method: string;
89
- path: string;
90
+ get path(): string | undefined;
91
+ set path(value: string | undefined);
90
92
  port: int;
91
93
  protocol: string;
92
94
  timeout: Nullable<System_Internal.Int32>;
@@ -107,7 +109,7 @@ export interface Server$instance extends EventEmitter {
107
109
  maxHeadersCount: int;
108
110
  requestTimeout: int;
109
111
  timeout: int;
110
- address(): AddressInfo;
112
+ address(): AddressInfo | undefined;
111
113
  close(callback?: Action): Server;
112
114
  listen(port: int, hostname?: string, backlog?: Nullable<System_Internal.Int32>, callback?: Action): Server;
113
115
  listen(port: int, callback: Action): Server;
@@ -143,7 +145,6 @@ export interface ServerResponse$instance extends EventEmitter {
143
145
 
144
146
 
145
147
  export const ServerResponse: {
146
- new(): ServerResponse;
147
148
  };
148
149
 
149
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/nodejs",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "TypeScript type definitions for Node.js CLR library",
5
5
  "type": "module",
6
6
  "keywords": [