(input: Uint8Array)
| 46 | * @returns A {@link CborType} representing the decoded data. |
| 47 | */ |
| 48 | export function decodeCbor(input: Uint8Array): CborType { |
| 49 | if (!input.length) throw new RangeError("Cannot decode empty Uint8Array"); |
| 50 | return decode(input, 0)[0]; |
| 51 | } |
no test coverage detected