@oino-ts/types 0.18.1 → 0.20.0
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/common/src/OINORequest.d.ts +14 -11
- package/common/src/OINOResult.d.ts +2 -0
- package/common/src/index.d.ts +1 -1
- package/index.d.ts +4 -20
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import { Buffer } from "node:buffer";
|
|
2
4
|
import { OINOContentType, OINOHeaders, OINOHeadersInit } from ".";
|
|
3
5
|
export interface OINORequestInit {
|
|
@@ -19,11 +21,12 @@ export declare class OINORequest {
|
|
|
19
21
|
*/
|
|
20
22
|
constructor(init?: OINORequestInit);
|
|
21
23
|
}
|
|
24
|
+
export type OINOHttpData = string | Buffer | Uint8Array | null;
|
|
22
25
|
export interface OINOHttpRequestInit extends OINORequestInit {
|
|
23
|
-
url?: URL;
|
|
26
|
+
url?: URL | string;
|
|
24
27
|
method?: string;
|
|
25
28
|
headers?: OINOHeadersInit;
|
|
26
|
-
body?:
|
|
29
|
+
body?: OINOHttpData;
|
|
27
30
|
requestType?: OINOContentType;
|
|
28
31
|
responseType?: OINOContentType;
|
|
29
32
|
multipartBoundary?: string;
|
|
@@ -33,15 +36,15 @@ export interface OINOHttpRequestInit extends OINORequestInit {
|
|
|
33
36
|
* Specialized result for HTTP responses.
|
|
34
37
|
*/
|
|
35
38
|
export declare class OINOHttpRequest extends OINORequest {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
url?: URL;
|
|
40
|
+
method: string;
|
|
41
|
+
headers: OINOHeaders;
|
|
42
|
+
body: OINOHttpData;
|
|
43
|
+
requestType: OINOContentType;
|
|
44
|
+
responseType: OINOContentType;
|
|
45
|
+
multipartBoundary?: string;
|
|
46
|
+
lastModified?: number;
|
|
47
|
+
etags?: string[];
|
|
45
48
|
/**
|
|
46
49
|
* Constructor for a `OINOHttpRequest`
|
|
47
50
|
*
|
package/common/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { OINOBenchmark, OINOMemoryBenchmark } from "./OINOBenchmark.js";
|
|
2
2
|
export { OINOLog, OINOLogLevel, OINOConsoleLog } from "./OINOLog.js";
|
|
3
3
|
export { OINOResult, OINOHttpResult, type OINOResultInit, type OINOHttpResultInit } from "./OINOResult.js";
|
|
4
|
-
export { OINORequest, OINOHttpRequest, type OINORequestInit, type OINOHttpRequestInit } from "./OINORequest.js";
|
|
4
|
+
export { OINORequest, OINOHttpRequest, type OINOHttpData, type OINORequestInit, type OINOHttpRequestInit } from "./OINORequest.js";
|
|
5
5
|
export { OINOStr } from "./OINOStr.js";
|
|
6
6
|
export { OINOHtmlTemplate } from "./OINOHtmlTemplate.js";
|
|
7
7
|
export { OINOFormatter, OINO_EMPTY_FORMATTER } from "./OINOFormatter.js";
|
package/index.d.ts
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
/// <reference path="db/src/index.d.ts
|
|
2
|
-
/// <reference path="db/src/
|
|
3
|
-
/// <reference path="db/src/
|
|
4
|
-
/// <reference path="db/src/
|
|
5
|
-
/// <reference path="db/src/
|
|
6
|
-
/// <reference path="db/src/OINODbDataModel.d.ts
|
|
7
|
-
/// <reference path="db/src/OINODbFactory.d.ts
|
|
8
|
-
/// <reference path="db/src/OINODbModelSet.d.ts
|
|
9
|
-
/// <reference path="db/src/OINODbRequestParams.d.ts
|
|
10
|
-
/// <reference path="db/src/OINODbSqlParams.d.ts
|
|
11
|
-
/// <reference path="db/src/OINODbSwagger.d.ts
|
|
12
|
-
/// <reference path="db/src/OINODbParser.d.ts
|
|
13
|
-
/// <reference path="db-bunsqlite/src/OINODbBunSqlite.d.ts
|
|
14
|
-
/// <reference path="db-mariadb/src/OINODbMariadb.d.ts
|
|
15
|
-
/// <reference path="db-mssql/src/OINODbMsSql.d.ts
|
|
16
|
-
/// <reference path="db-postgresql/src/OINODbPostgresql.d.ts
|
|
2
|
+
/// <reference path="db-bunsqlite/src/index.d.ts
|
|
3
|
+
/// <reference path="db-mariadb/src/index.d.ts
|
|
4
|
+
/// <reference path="db-mssql/src/index.d.ts
|
|
5
|
+
/// <reference path="db-postgresql/src/index.d.ts
|
|
17
6
|
/// <reference path="hashid/src/OINOHashid.d.ts
|
|
18
7
|
/// <reference path="common/src/index.d.ts
|
|
19
|
-
/// <reference path="common/src/OINOBenchmark.d.ts
|
|
20
|
-
/// <reference path="common/src/OINOHtmlTemplate.d.ts
|
|
21
|
-
/// <reference path="common/src/OINOLog.d.ts
|
|
22
|
-
/// <reference path="common/src/OINOResult.d.ts
|
|
23
|
-
/// <reference path="common/src/OINOStr.d.ts
|