Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@waiting/shared-types

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-types - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

12

CHANGELOG.md

@@ -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 @@

2

dist/index.cjs.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc