vkontakte-api
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.4.2](https://github.com/wolframdeus/vk-api/compare/v2.4.1...v2.4.2) (2021-05-20) | ||
### Bug Fixes | ||
* **storage.get:** fix return type of "get single key" ([c7c7ea3](https://github.com/wolframdeus/vk-api/commit/c7c7ea382866a2124855ce009f4694f4239f96f7)) | ||
### [2.4.1](https://github.com/wolframdeus/vk-api/compare/v2.4.0...v2.4.1) (2021-02-11) | ||
@@ -7,0 +14,0 @@ |
@@ -10,3 +10,3 @@ import { Repository } from '../Repository'; | ||
*/ | ||
get: <P extends TGetParams>(params: P) => Promise<P extends IGetSingleKeyParams ? string : TGetMultipleKeysResult>; | ||
get: <P extends TGetParams>(params: P) => Promise<P extends IGetSingleKeyParams ? TGetSingleKeyResult : TGetMultipleKeysResult>; | ||
/** | ||
@@ -13,0 +13,0 @@ * @see https://vk.com/dev/storage.getKeys |
@@ -14,7 +14,7 @@ /** | ||
export declare type TGetParams = IGetSingleKeyParams | IGetMultipleKeysParams; | ||
export declare type TGetSingleKeyResult = string; | ||
export declare type TGetMultipleKeysResult = { | ||
export declare type TGetSingleKeyResult = { | ||
key: string; | ||
value: string; | ||
}[]; | ||
}; | ||
export declare type TGetMultipleKeysResult = TGetSingleKeyResult[]; | ||
/** | ||
@@ -21,0 +21,0 @@ * @see https://vk.com/dev/storage.getKeys |
{ | ||
"name": "vkontakte-api", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "TypeScript library to make requests performing to VK API simple", | ||
@@ -22,3 +22,3 @@ "homepage": "https://github.com/wolframdeus/vk-api", | ||
"scripts": { | ||
"dev:browser": "webpack-dev-server", | ||
"dev:browser": "webpack serve", | ||
"build": "gulp", | ||
@@ -25,0 +25,0 @@ "test": "tsc --noEmit", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365756