@oino-ts/types 0.17.4 → 0.17.5
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 { Buffer } from "node:buffer";
|
|
1
2
|
import { OINOHeaders, OINOHeadersInit } from ".";
|
|
2
3
|
export interface OINOResultInit {
|
|
3
4
|
success?: boolean;
|
|
@@ -88,7 +89,7 @@ export declare class OINOResult {
|
|
|
88
89
|
printLog(): string;
|
|
89
90
|
}
|
|
90
91
|
export interface OINOHttpResultInit extends OINOResultInit {
|
|
91
|
-
body?: string;
|
|
92
|
+
body?: string | Buffer;
|
|
92
93
|
headers?: OINOHeadersInit;
|
|
93
94
|
expires?: number;
|
|
94
95
|
lastModified?: number;
|
|
@@ -99,7 +100,7 @@ export interface OINOHttpResultInit extends OINOResultInit {
|
|
|
99
100
|
export declare class OINOHttpResult extends OINOResult {
|
|
100
101
|
private _etag;
|
|
101
102
|
/** HTTP body data */
|
|
102
|
-
readonly body: string;
|
|
103
|
+
readonly body: string | Buffer;
|
|
103
104
|
/** HTTP headers */
|
|
104
105
|
readonly headers: OINOHeaders;
|
|
105
106
|
/** HTTP cache expiration value
|