@tsonic/nodejs 10.0.5 → 10.0.7
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/index/internal/index.d.ts +499 -265
- package/nodejs.Http/internal/index.d.ts +38 -24
- package/package.json +3 -3
|
@@ -8,14 +8,16 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
|
|
|
8
8
|
// Import types from other namespaces
|
|
9
9
|
import * as nodejs_Internal from "../../index/internal/index.js";
|
|
10
10
|
import type { EventEmitter } from "../../index/internal/index.js";
|
|
11
|
-
import type {
|
|
12
|
-
import * as
|
|
13
|
-
import type {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import type {
|
|
11
|
+
import type { Dictionary_2 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
12
|
+
import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
13
|
+
import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
14
|
+
import type { Task, Task_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
15
|
+
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
16
|
+
import type { Action, Action_1, Action_2, Boolean as ClrBoolean, Delegate, Exception, Int32, Nullable_1, Object as ClrObject, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
17
17
|
|
|
18
18
|
export interface AddressInfo$instance {
|
|
19
|
+
readonly __tsonic_type_nodejs_Http_AddressInfo: never;
|
|
20
|
+
|
|
19
21
|
address: string;
|
|
20
22
|
family: string;
|
|
21
23
|
port: int;
|
|
@@ -30,6 +32,8 @@ export const AddressInfo: {
|
|
|
30
32
|
export type AddressInfo = AddressInfo$instance;
|
|
31
33
|
|
|
32
34
|
export interface ClientRequest$instance extends EventEmitter {
|
|
35
|
+
readonly __tsonic_type_nodejs_Http_ClientRequest: never;
|
|
36
|
+
|
|
33
37
|
readonly aborted: boolean;
|
|
34
38
|
readonly host: string;
|
|
35
39
|
readonly method: string;
|
|
@@ -53,18 +57,20 @@ export const ClientRequest: {
|
|
|
53
57
|
export type ClientRequest = ClientRequest$instance;
|
|
54
58
|
|
|
55
59
|
export interface IncomingMessage$instance extends EventEmitter {
|
|
60
|
+
readonly __tsonic_type_nodejs_Http_IncomingMessage: never;
|
|
61
|
+
|
|
56
62
|
complete: boolean;
|
|
57
|
-
readonly headers:
|
|
63
|
+
readonly headers: Dictionary_2<System_Internal.String, System_Internal.String>;
|
|
58
64
|
readonly httpVersion: string;
|
|
59
65
|
readonly method: string | undefined;
|
|
60
|
-
readonly statusCode:
|
|
66
|
+
readonly statusCode: Nullable_1<System_Internal.Int32>;
|
|
61
67
|
readonly statusMessage: string | undefined;
|
|
62
68
|
readonly url: string | undefined;
|
|
63
69
|
destroy(): void;
|
|
64
70
|
onClose(callback: Action): void;
|
|
65
|
-
onData(callback:
|
|
71
|
+
onData(callback: Action_1<System_Internal.String>): void;
|
|
66
72
|
onEnd(callback: Action): void;
|
|
67
|
-
readAll():
|
|
73
|
+
readAll(): Task_1<System_Internal.String>;
|
|
68
74
|
setTimeout(msecs: int, callback?: Action): IncomingMessage;
|
|
69
75
|
}
|
|
70
76
|
|
|
@@ -76,12 +82,14 @@ export const IncomingMessage: {
|
|
|
76
82
|
export type IncomingMessage = IncomingMessage$instance;
|
|
77
83
|
|
|
78
84
|
export interface RequestOptions$instance {
|
|
85
|
+
readonly __tsonic_type_nodejs_Http_RequestOptions: never;
|
|
86
|
+
|
|
79
87
|
get agent(): unknown | undefined;
|
|
80
88
|
set agent(value: unknown | undefined);
|
|
81
89
|
get auth(): string | undefined;
|
|
82
90
|
set auth(value: string | undefined);
|
|
83
|
-
get headers():
|
|
84
|
-
set headers(value:
|
|
91
|
+
get headers(): Dictionary_2<System_Internal.String, System_Internal.String> | undefined;
|
|
92
|
+
set headers(value: Dictionary_2<System_Internal.String, System_Internal.String> | undefined);
|
|
85
93
|
get host(): string | undefined;
|
|
86
94
|
set host(value: string | undefined);
|
|
87
95
|
get hostname(): string | undefined;
|
|
@@ -91,7 +99,7 @@ export interface RequestOptions$instance {
|
|
|
91
99
|
set path(value: string | undefined);
|
|
92
100
|
port: int;
|
|
93
101
|
protocol: string;
|
|
94
|
-
timeout:
|
|
102
|
+
timeout: Nullable_1<System_Internal.Int32>;
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
|
|
@@ -103,6 +111,8 @@ export const RequestOptions: {
|
|
|
103
111
|
export type RequestOptions = RequestOptions$instance;
|
|
104
112
|
|
|
105
113
|
export interface Server$instance extends EventEmitter {
|
|
114
|
+
readonly __tsonic_type_nodejs_Http_Server: never;
|
|
115
|
+
|
|
106
116
|
headersTimeout: int;
|
|
107
117
|
keepAliveTimeout: int;
|
|
108
118
|
readonly listening: boolean;
|
|
@@ -111,20 +121,22 @@ export interface Server$instance extends EventEmitter {
|
|
|
111
121
|
timeout: int;
|
|
112
122
|
address(): AddressInfo | undefined;
|
|
113
123
|
close(callback?: Action): Server;
|
|
114
|
-
listen(port: int, hostname?: string, backlog?:
|
|
124
|
+
listen(port: int, hostname?: string, backlog?: Nullable_1<System_Internal.Int32>, callback?: Action): Server;
|
|
115
125
|
listen(port: int, callback: Action): Server;
|
|
116
126
|
setTimeout(msecs: int, callback?: Action): Server;
|
|
117
127
|
}
|
|
118
128
|
|
|
119
129
|
|
|
120
130
|
export const Server: {
|
|
121
|
-
new(requestListener:
|
|
131
|
+
new(requestListener: Action_2<IncomingMessage, ServerResponse>): Server;
|
|
122
132
|
};
|
|
123
133
|
|
|
124
134
|
|
|
125
135
|
export type Server = Server$instance;
|
|
126
136
|
|
|
127
137
|
export interface ServerResponse$instance extends EventEmitter {
|
|
138
|
+
readonly __tsonic_type_nodejs_Http_ServerResponse: never;
|
|
139
|
+
|
|
128
140
|
readonly finished: boolean;
|
|
129
141
|
readonly headersSent: boolean;
|
|
130
142
|
statusCode: int;
|
|
@@ -133,14 +145,14 @@ export interface ServerResponse$instance extends EventEmitter {
|
|
|
133
145
|
flushHeaders(): void;
|
|
134
146
|
getHeader(name: string): string | undefined;
|
|
135
147
|
getHeaderNames(): string[];
|
|
136
|
-
getHeaders():
|
|
148
|
+
getHeaders(): Dictionary_2<System_Internal.String, System_Internal.String>;
|
|
137
149
|
hasHeader(name: string): boolean;
|
|
138
150
|
removeHeader(name: string): void;
|
|
139
151
|
setHeader(name: string, value: string): ServerResponse;
|
|
140
152
|
setTimeout(msecs: int, callback?: Action): ServerResponse;
|
|
141
153
|
write(chunk: string, encoding?: string, callback?: Action): boolean;
|
|
142
|
-
writeHead(statusCode: int, statusMessage?: string, headers?:
|
|
143
|
-
writeHead(statusCode: int, headers:
|
|
154
|
+
writeHead(statusCode: int, statusMessage?: string, headers?: Dictionary_2<System_Internal.String, System_Internal.String>): ServerResponse;
|
|
155
|
+
writeHead(statusCode: int, headers: Dictionary_2<System_Internal.String, System_Internal.String>): ServerResponse;
|
|
144
156
|
}
|
|
145
157
|
|
|
146
158
|
|
|
@@ -151,6 +163,8 @@ export const ServerResponse: {
|
|
|
151
163
|
export type ServerResponse = ServerResponse$instance;
|
|
152
164
|
|
|
153
165
|
export interface TypeError$instance extends Exception {
|
|
166
|
+
readonly __tsonic_type_nodejs_Http_TypeError: never;
|
|
167
|
+
|
|
154
168
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
155
169
|
|
|
156
170
|
}
|
|
@@ -164,15 +178,15 @@ export const TypeError: {
|
|
|
164
178
|
export type TypeError = TypeError$instance;
|
|
165
179
|
|
|
166
180
|
export abstract class http$instance {
|
|
167
|
-
static globalAgent_maxSockets:
|
|
181
|
+
static globalAgent_maxSockets: Nullable_1<System_Internal.Int32>;
|
|
168
182
|
static globalAgent_maxFreeSockets: int;
|
|
169
183
|
static globalAgent_timeout: int;
|
|
170
184
|
static maxHeaderSize: int;
|
|
171
|
-
static createServer(requestListener?:
|
|
172
|
-
static get(options: RequestOptions, callback?:
|
|
173
|
-
static get(url: string, callback?:
|
|
174
|
-
static request(options: RequestOptions, callback?:
|
|
175
|
-
static request(url: string, callback?:
|
|
185
|
+
static createServer(requestListener?: Action_2<IncomingMessage, ServerResponse>): Server;
|
|
186
|
+
static get(options: RequestOptions, callback?: Action_1<IncomingMessage>): ClientRequest;
|
|
187
|
+
static get(url: string, callback?: Action_1<IncomingMessage>): ClientRequest;
|
|
188
|
+
static request(options: RequestOptions, callback?: Action_1<IncomingMessage>): ClientRequest;
|
|
189
|
+
static request(url: string, callback?: Action_1<IncomingMessage>): ClientRequest;
|
|
176
190
|
static validateHeaderName(name: string): void;
|
|
177
191
|
static validateHeaderValue(name: string, value: unknown): void;
|
|
178
192
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/nodejs",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.7",
|
|
4
4
|
"description": "TypeScript type definitions for Node.js CLR library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "https://github.com/tsoniclang/nodejs.git"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@tsonic/dotnet": "^10.0.
|
|
23
|
-
"@tsonic/core": "^10.0.
|
|
22
|
+
"@tsonic/dotnet": "^10.0.6",
|
|
23
|
+
"@tsonic/core": "^10.0.9"
|
|
24
24
|
}
|
|
25
25
|
}
|