@waiting/shared-types
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [5.2.0](https://github.com/waitingsong/shared-types/compare/v5.1.0...v5.2.0) (2020-11-24) | ||
### Features | ||
* **types:** add JsonObject ([64dc5f0](https://github.com/waitingsong/shared-types/commit/64dc5f0f890ccaeedf6d54647a395381b80a9a03)) | ||
* **types:** change generics of JsonResp to unknow ([083d50f](https://github.com/waitingsong/shared-types/commit/083d50f39c86d2deba399af2b8fb6bcbb6864e5a)) | ||
# [5.1.0](https://github.com/waitingsong/shared-types/compare/v5.0.0...v5.1.0) (2020-07-17) | ||
@@ -8,0 +20,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 5.0.0 | ||
* @version 5.1.0 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -7,7 +7,10 @@ /** Value of key-value pairs object */ | ||
*/ | ||
export declare type JsonType = string | number | boolean | null | JsonType[] | { | ||
export interface JsonObject { | ||
[key: string]: PlainJsonValue | PlainJsonValue[] | JsonObject | JsonObject[]; | ||
} | ||
export declare type JsonType = PlainJsonValue | JsonType[] | { | ||
[property: string]: JsonType; | ||
}; | ||
/** Custom response json data structure */ | ||
export interface JsonResp<T extends JsonType | Record<string, unknown> = any> { | ||
export interface JsonResp<T = unknown> { | ||
/** 0: no error */ | ||
@@ -14,0 +17,0 @@ code: number; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "shared typescript types", | ||
@@ -74,3 +74,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "67a43fbb1b1feba32124d6b6f4ee9513666ff500" | ||
"gitHead": "39ec1d10d76154f1dfe635648ce2822c11a98710" | ||
} |
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
32843
622