@zimic/fetch 0.1.0-canary.13 → 0.1.0-canary.14
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/dist/index.d.ts +6 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HttpSchema, HttpSchemaMethod, HttpSchemaPath, HttpMethod, HttpSearchParams, HttpRequest, HttpRequestHeadersSchema, AllowAnyStringInPathParams, LiteralHttpSchemaPathFromNonLiteral, HttpRequestSchema, HttpMethodSchema, HttpStatusCode, HttpResponse, HttpResponseBodySchema, HttpResponseHeadersSchema, JSONValue, HttpResponseSchemaStatusCode, HttpHeaders } from '@zimic/http';
|
|
2
|
-
import { Default, ReplaceBy, IfNever, DefaultNoExclude, PossiblePromise } from '@zimic/utils/types';
|
|
3
2
|
|
|
4
3
|
declare const value: unique symbol;
|
|
5
4
|
type JSONStringified<Value> = string & {
|
|
@@ -11,6 +10,12 @@ declare global {
|
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
|
|
13
|
+
type Default<Type, IfEmpty = never> = [undefined | void] extends [Type] ? IfEmpty : Exclude<Type, undefined | void>;
|
|
14
|
+
type DefaultNoExclude<Type, IfEmpty = never> = [undefined | void] extends Type ? IfEmpty : Type;
|
|
15
|
+
type IfNever<Type, Yes, No = Type> = [Type] extends [never] ? Yes : No;
|
|
16
|
+
type PossiblePromise<Type> = Type | PromiseLike<Type>;
|
|
17
|
+
type ReplaceBy<Type, Source, Target> = Type extends Source ? Target : Type;
|
|
18
|
+
|
|
14
19
|
type FetchRequestInitHeaders<RequestSchema extends HttpRequestSchema> = RequestSchema['headers'] | HttpHeaders<Default<RequestSchema['headers']>>;
|
|
15
20
|
type FetchRequestInitWithHeaders<RequestSchema extends HttpRequestSchema> = [RequestSchema['headers']] extends [never] ? {
|
|
16
21
|
headers?: undefined;
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"api",
|
|
14
14
|
"static"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.1.0-canary.
|
|
16
|
+
"version": "0.1.0-canary.14",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://github.com/zimicjs/zimic.git",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"typescript": "^5.7.3",
|
|
67
67
|
"vitest": "^3.0.6",
|
|
68
68
|
"@zimic/eslint-config-node": "0.0.0",
|
|
69
|
-
"@zimic/lint-staged-config": "0.0.0",
|
|
70
69
|
"@zimic/interceptor": "0.14.0-canary.23",
|
|
71
|
-
"@zimic/
|
|
72
|
-
"@zimic/tsconfig": "0.0.0"
|
|
70
|
+
"@zimic/lint-staged-config": "0.0.0",
|
|
71
|
+
"@zimic/tsconfig": "0.0.0",
|
|
72
|
+
"@zimic/utils": "0.0.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@zimic/http": "^0.1.0 || ^0.1.0-canary.0",
|