@polkadot/util-rlp
Advanced tools
Comparing version 0.94.0-beta.9 to 0.94.0-beta.10
@@ -15,2 +15,2 @@ /** | ||
*/ | ||
export default function decoder(input?: null | Uint8Array): Uint8Array | Array<any>; | ||
export default function decoder(input?: null | Uint8Array): Uint8Array | Uint8Array[]; |
@@ -1,5 +0,5 @@ | ||
export declare type DecodeOutput = { | ||
decoded: Uint8Array | Array<any>; | ||
export interface DecodeOutput { | ||
decoded: Uint8Array | (Uint8Array | Uint8Array[])[]; | ||
remainder: Uint8Array; | ||
}; | ||
} | ||
export declare type DecodeFunc = (input: Uint8Array) => DecodeOutput; |
import { EncodeFunc } from './types'; | ||
export default function encodeArray(encoder: EncodeFunc, input: any): Uint8Array; | ||
export default function encodeArray(encoder: EncodeFunc, input: (Uint8Array | null)[]): Uint8Array; |
@@ -15,2 +15,2 @@ /** | ||
*/ | ||
export default function encoder(input: any): Uint8Array; | ||
export default function encoder(input?: null | Uint8Array | (null | Uint8Array)[] | string): Uint8Array; |
@@ -42,3 +42,4 @@ "use strict"; | ||
fn: convertU8a | ||
}, { | ||
}, // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
{ | ||
check: _util.isBn, | ||
@@ -52,3 +53,3 @@ fn: value => (0, _util.bnToU8a)(value, -1, false) | ||
fn: convertString | ||
}]; | ||
}]; // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -55,0 +56,0 @@ function toU8a(value) { |
{ | ||
"name": "@polkadot/util-rlp", | ||
"version": "0.94.0-beta.9", | ||
"version": "0.94.0-beta.10", | ||
"description": "RLP encoding and decoding", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"@babel/runtime": "^7.5.4", | ||
"@polkadot/util": "^0.94.0-beta.9" | ||
"@polkadot/util": "^0.94.0-beta.10" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
39070
546