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

@ts-common/json

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-common/json - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

14

index.d.ts

@@ -1,7 +0,9 @@

export interface ObjectProperties {
import * as array from "@ts-common/array";
export interface JsonObject {
readonly [name: string]: Json | undefined;
}
export declare type Object = object & ObjectProperties;
export declare type ArrayObject = Array<any>;
export declare type Json = null | boolean | string | number | ArrayObject | Object;
export declare type JsonArray = ReadonlyArray<Json>;
export interface JsonArrayImplementation extends array.ImmutableArray<Json> {
}
export declare type Json = null | boolean | string | number | JsonArrayImplementation | JsonObject;
export interface Visitor<T> {

@@ -12,4 +14,4 @@ asNull(): T;

asNumber(value: number): T;
asArray(value: ReadonlyArray<Json>): T;
asObject(value: ObjectProperties): T;
asArray(value: JsonArray): T;
asObject(value: JsonObject): T;
}

@@ -16,0 +18,0 @@ export declare function visit<T>(value: Json, visitor: Visitor<T>): T;

{
"name": "@ts-common/json",
"version": "0.0.3",
"version": "0.0.4",
"description": "JSON Data Type",

@@ -8,3 +8,4 @@ "main": "index.js",

"tsc": "tsc",
"test": "echo \"Error: no test specified\" && exit 1",
"tslint": "tslint --project tsconfig.json",
"test": "tsc && npm run tslint",
"prepack": "npm install & tsc"

@@ -26,5 +27,8 @@ },

"devDependencies": {
"typescript": "^2.9.1"
"tslint": "^5.11.0",
"typescript": "3.0.0-rc"
},
"dependencies": {}
"dependencies": {
"@ts-common/array": "0.0.0"
}
}
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