UNPKG
borsh
Version:
latest (2.0.0)
2.0.0
1.0.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.1
0.2.6
0.1.1
Binary Object Representation Serializer for Hashing
github.com/near/borsh-js
near/borsh-js
borsh
/
lib
/
esm
/
index.d.ts
5 lines
(4 loc)
•
289 B
TypeScript
View Raw
1
2
3
4
5
import
{
Schema
,
DecodeTypes
}
from
'./types.js'
;
export
{
Schema
}
from
'./types'
;
export
declare
function
serialize
(
schema
:
Schema
,
value
:
unknown
,
validate
?:
boolean
):
Uint8Array
;
export
declare
function
deserialize
(
schema
:
Schema
,
buffer
:
Uint8Array
,
validate
?:
boolean
):
DecodeTypes
;