@types/falcor-json-graph
Advanced tools
Comparing version 1.1.19 to 1.1.20
@@ -10,3 +10,2 @@ // Type definitions for falcor-json-graph 1.1.7 | ||
declare namespace FalcorJsonGraph { | ||
// NOTE: The following types are described at https://github.com/Netflix/falcor/tree/master/lib/typedefs . | ||
@@ -16,5 +15,5 @@ | ||
* An atom allows you to treat a JSON value as atomic regardless of its type, ensuring that a JSON object or array is always returned in its entirety. The JSON value must be treated as immutable. Atoms can also be used to associate metadata with a JSON value. This metadata can be used to influence the way values are handled. | ||
**/ | ||
*/ | ||
interface Atom extends Sentinel { | ||
$type: 'atom'; | ||
$type: "atom"; | ||
value: any; | ||
@@ -24,3 +23,3 @@ } | ||
interface Error extends Sentinel { | ||
$type: 'error'; | ||
$type: "error"; | ||
value: any; | ||
@@ -35,3 +34,3 @@ } | ||
* A part of a {@link Path} that can be any JSON value type. All types are coerced to string, except null. This makes the number 1 and the string "1" equivalent. | ||
**/ | ||
*/ | ||
type Key = string | number | boolean; | ||
@@ -41,3 +40,3 @@ | ||
* A part of a {@link PathSet} that can be either a {@link Key}, {@link Range}, or Array of either. | ||
**/ | ||
*/ | ||
type KeySet = Key | Range | Array<Key | Range>; | ||
@@ -47,3 +46,3 @@ | ||
* An ordered list of {@link Key}s that point to a value in a {@link JSONGraph}. | ||
**/ | ||
*/ | ||
type Path = Array<Key>; | ||
@@ -53,3 +52,3 @@ | ||
* An ordered list of {@link KeySet}s that point to location(s) in the {@link JSONGraph}. It enables pointing to multiple locations in a more terse format than a set of {@link Path}s and is generally more efficient to evaluate. | ||
**/ | ||
*/ | ||
type PathSet = Array<KeySet>; | ||
@@ -59,3 +58,3 @@ | ||
* A wrapper around a path and its value. | ||
**/ | ||
*/ | ||
interface PathValue { | ||
@@ -68,3 +67,3 @@ path: string | PathSet; | ||
* An envelope that wraps a JSON object. | ||
**/ | ||
*/ | ||
interface JSONEnvelope<T> { | ||
@@ -76,3 +75,3 @@ json: T; | ||
* JavaScript Object Notation Graph (JSONGraph) is a notation for expressing graphs in JSON. For more information, see the [JSONGraph Guide]{@link http://netflix.github.io/falcor/documentation/jsongraph.html}. | ||
**/ | ||
*/ | ||
type JSONGraph = any; | ||
@@ -82,3 +81,3 @@ | ||
* An envelope that wraps a {@link JSONGraph} fragment. | ||
**/ | ||
*/ | ||
interface JSONGraphEnvelope { | ||
@@ -92,3 +91,3 @@ jsonGraph: JSONGraph; | ||
* Describe a range of integers. Must contain either a "to" or "length" property. | ||
**/ | ||
*/ | ||
interface Range { | ||
@@ -101,3 +100,3 @@ from?: number | undefined; | ||
interface Reference extends Sentinel { | ||
$type: 'reference'; | ||
$type: "reference"; | ||
value: Path; | ||
@@ -111,3 +110,3 @@ } | ||
function ref(path: string | FalcorJsonGraph.PathSet, props?: FalcorJsonGraph.Sentinel): FalcorJsonGraph.Reference; | ||
function atom (value: any, props?: FalcorJsonGraph.Sentinel): FalcorJsonGraph.Atom; | ||
function atom(value: any, props?: FalcorJsonGraph.Sentinel): FalcorJsonGraph.Atom; | ||
function error(errorValue: any, props?: FalcorJsonGraph.Sentinel): FalcorJsonGraph.Error; | ||
@@ -117,2 +116,1 @@ function pathValue(path: string | FalcorJsonGraph.PathSet, value: any): FalcorJsonGraph.PathValue; | ||
} | ||
{ | ||
"name": "@types/falcor-json-graph", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"description": "TypeScript definitions for falcor-json-graph", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falcor-json-graph", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b0aabbd84537b8cfd5c8fea4734ec398511a30a583566ae1f514b6ba6ee462f3", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "9c5f5af338b9997bb3736bd3b33fff89816bd3bdec6987f2abf5b73b6e8dc5af", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 09 Jul 2021 02:32:26 GMT | ||
* Last updated: Thu, 14 Sep 2023 15:26:41 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
6252