@blizzard-api/core
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -56,3 +56,3 @@ /** | ||
*/ | ||
type BlizzardNamespaces = 'dynamic-classic' | 'dynamic-classic1x' | 'dynamic' | 'profile' | 'static-classic' | 'static-classic1x' | 'static'; | ||
type BlizzardNamespaces = 'dynamic' | 'dynamic-classic' | 'dynamic-classic1x' | 'profile' | 'static' | 'static-classic' | 'static-classic1x'; | ||
@@ -78,2 +78,9 @@ /** | ||
/** | ||
* Represents a resource that requires a token to be requested | ||
* @param Response The response type of the resource | ||
* @param SearchOptions The search options that can be passed to the resource | ||
* | ||
*/ | ||
type ProtectedResource<Response, SearchOptions extends object = Record<string, never>> = Resource<Response, SearchOptions, true>; | ||
/** | ||
* Represents the response of a resource | ||
@@ -137,2 +144,2 @@ * @param T The response type of the resource | ||
export { type BaseSearchParameters, type BlizzardNamespaces, type ExtractResourceType, type Locales, type Origins, type Resource, type ResourceResponse, type SearchResponse, getBlizzardApi }; | ||
export { type BaseSearchParameters, type BlizzardNamespaces, type ExtractResourceType, type Locales, type Origins, type ProtectedResource, type Resource, type ResourceResponse, type SearchResponse, getBlizzardApi }; |
{ | ||
"name": "@blizzard-api/core", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Putro", |
Sorry, the diff of this file is not supported yet
21899
205