forked from rvagg/cborg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cborg.js
19 lines (17 loc) · 603 Bytes
/
cborg.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { encode } from './lib/encode.js'
import { decode } from './lib/decode.js'
import { Token, Type } from './lib/token.js'
/**
* Export the types that were present in the original manual cborg.d.ts
* @typedef {import('./interface').TagDecoder} TagDecoder
* There was originally just `TypeEncoder` so don't break types by renaming or not exporting
* @typedef {import('./interface').OptionalTypeEncoder} TypeEncoder
* @typedef {import('./interface').DecodeOptions} DecodeOptions
* @typedef {import('./interface').EncodeOptions} EncodeOptions
*/
export {
decode,
encode,
Token,
Type
}