@types/json-patch
Advanced tools
Comparing version 0.0.28 to 0.0.29
@@ -7,27 +7,27 @@ // Type definitions for json-patch | ||
declare namespace jsonpatch { | ||
type OpPatch = AddPath | RemovePath | ReplacePath | MovePath | CopyPath | TestPath; | ||
type OpPatch = AddPatch | RemovePatch | ReplacePatch | MovePatch | CopyPatch | TestPatch; | ||
interface Patch { | ||
op: string; | ||
path: string; | ||
} | ||
interface AddPath extends Patch { | ||
path: string; | ||
interface AddPatch extends Patch { | ||
op: 'add'; | ||
value: any; | ||
} | ||
interface RemovePath extends Patch { | ||
path: string; | ||
interface RemovePatch extends Patch { | ||
op: 'remove'; | ||
} | ||
interface ReplacePath extends Patch { | ||
path: string; | ||
interface ReplacePatch extends Patch { | ||
op: 'replace'; | ||
value: any; | ||
} | ||
interface MovePath extends Patch { | ||
interface MovePatch extends Patch { | ||
op: 'move'; | ||
from: string; | ||
path: string; | ||
} | ||
interface CopyPath extends Patch { | ||
interface CopyPatch extends Patch { | ||
op: 'copy'; | ||
from: string; | ||
path: string; | ||
} | ||
interface TestPath extends Patch { | ||
path: string; | ||
interface TestPatch extends Patch { | ||
op: 'test'; | ||
value: any; | ||
@@ -38,2 +38,8 @@ } | ||
function compile(patches: OpPatch[]): (document: any) => any; | ||
class JSONPatchError extends Error { } | ||
class InvalidPointerError extends Error { } | ||
class InvalidPatchError extends JSONPatchError { } | ||
class PatchConflictError extends JSONPatchError { } | ||
class PatchTestFailed extends Error { } | ||
} | ||
@@ -40,0 +46,0 @@ |
{ | ||
"name": "@types/json-patch", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"description": "TypeScript definitions for json-patch", | ||
"license": "MIT", | ||
"author": "vvakame <https://github.com/vvakame/>", | ||
"contributors": [ | ||
{ | ||
"name": "vvakame", | ||
"url": "https://github.com/vvakame/" | ||
} | ||
], | ||
"main": "", | ||
@@ -14,4 +19,5 @@ "repository": { | ||
"dependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "9c3c4d72dff94d8c5f5af335effb8ad68f8c84cc4919cb2e9fadf6d8e154503b" | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "73a234ee8984f05df1e65d6018e04158c7c9696e1be9abd316340be1efc004c2", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,9 +8,7 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/json-patch | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: UMD | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Last updated: Mon, 10 Apr 2017 21:51:00 GMT | ||
* Dependencies: none | ||
* Global values: jsonpatch | ||
@@ -17,0 +15,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
2482
3
42
17