@types/cbor-js
Version:
TypeScript definitions for cbor-js
28 lines (19 loc) • 798 B
Markdown
# Installation
> `npm install --save @types/cbor-js`
# Summary
This package contains type definitions for cbor-js (https://github.com/paroga/cbor-js).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cbor-js.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cbor-js/index.d.ts)
````ts
// Type definitions for cbor-js 0.1.0
// Project: https://github.com/paroga/cbor-js
export function encode(data: any): ArrayBuffer;
export function decode(encoded: ArrayBuffer): any;
export as namespace CBOR;
````
### Additional Details
* Last updated: Wed, 20 Mar 2024 16:08:27 GMT
* Dependencies: none
# Credits
These definitions were written by [long2014](https://github.com/Longqin88888).