interface-ipld-format
Advanced tools
Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "interface-ipld-format", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "IPLD format", | ||
"main": "index.js", | ||
"types": "./types.d.ts", | ||
"files": [ | ||
"types.d.ts" | ||
], | ||
"scripts": { | ||
@@ -8,0 +11,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
@@ -15,4 +15,4 @@ import CID from 'cids' | ||
util: { | ||
serialize (ipldNode: T) : Promise<Uint8Array> | ||
deserialize (binaryBlob: Uint8Array) : Promise<T> | ||
serialize (ipldNode: T) : Uint8Array | ||
deserialize (binaryBlob: Uint8Array) : T | ||
cid (binaryBlob: Uint8Array, options: { }) : Promise<CID> | ||
@@ -22,5 +22,5 @@ } | ||
resolver: { | ||
resolve (binaryBlob: Uint8Array, path: string) : Promise<{ value: any, remainderPath?: string }> | ||
tree (binaryBlob: Uint8Array) : AsyncGenerator<string, void, undefined> | ||
resolve (binaryBlob: Uint8Array, path: string) : { value: any, remainderPath?: string } | ||
tree (binaryBlob: Uint8Array) : Generator<string, void, undefined> | ||
} | ||
} |
25966
5