@ts-common/json
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -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" | ||
} | ||
} |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
13647
32
1
1
2
+ Added@ts-common/array@0.0.0
+ Added@ts-common/array@0.0.0(transitive)