@blizzard-api/core 0.0.7 → 0.0.8
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.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -24,10 +24,15 @@ type BlizzardNamespaces = 'profile' | 'static' | 'dynamic' | 'static-classic' |
|
|
|
24
24
|
* @param _Response The response type of the resource
|
|
25
25
|
* @param ProtectedResource Whether the resource requires a token to be requested
|
|
26
26
|
*/
|
|
27
|
-
type Resource<
|
|
27
|
+
type Resource<Response, ProtectedResource extends boolean = false> = {
|
|
28
28
|
path: string;
|
|
29
29
|
namespace?: BlizzardNamespaces;
|
|
30
30
|
parameters?: Record<string, string | number>;
|
|
31
|
+
/**
|
|
32
|
+
* The response type of the resource
|
|
33
|
+
* @private @internal This is an internal property and should not be used as it will not be populated
|
|
34
|
+
*/
|
|
35
|
+
_responseType?: Response;
|
|
31
36
|
} & (ProtectedResource extends true ? {
|
|
32
37
|
token: string;
|
|
33
38
|
} : unknown);
|
package/dist/index.d.ts
CHANGED
|
@@ -24,10 +24,15 @@ type BlizzardNamespaces = 'profile' | 'static' | 'dynamic' | 'static-classic' |
|
|
|
24
24
|
* @param _Response The response type of the resource
|
|
25
25
|
* @param ProtectedResource Whether the resource requires a token to be requested
|
|
26
26
|
*/
|
|
27
|
-
type Resource<
|
|
27
|
+
type Resource<Response, ProtectedResource extends boolean = false> = {
|
|
28
28
|
path: string;
|
|
29
29
|
namespace?: BlizzardNamespaces;
|
|
30
30
|
parameters?: Record<string, string | number>;
|
|
31
|
+
/**
|
|
32
|
+
* The response type of the resource
|
|
33
|
+
* @private @internal This is an internal property and should not be used as it will not be populated
|
|
34
|
+
*/
|
|
35
|
+
_responseType?: Response;
|
|
31
36
|
} & (ProtectedResource extends true ? {
|
|
32
37
|
token: string;
|
|
33
38
|
} : unknown);
|