Interface: PbjsGeneratedType
@shareledgerjs/signing.PbjsGeneratedType
A type generated by protobufjs.
This can be used if you want to create types at runtime using pure JavaScript. See https://gist.github.com/fadeev/a4981eff1cf3a805ef10e25313d5f2b7
Properties
create
• Readonly
create: (properties?
: { [k: string]
: any
; }) => any
Type declaration
▸ (properties?
): any
Parameters
Name | Type |
---|---|
properties? | Object |
Returns
any
decode
• Readonly
decode: (reader
: Uint8Array
| Reader
, length?
: number
) => any
Type declaration
▸ (reader
, length?
): any
Parameters
Name | Type |
---|---|
reader | Uint8Array | Reader |
length? | number |
Returns
any
encode
• Readonly
encode: (message
: any
, writer?
: Writer
) => Writer
Type declaration
▸ (message
, writer?
): Writer
Parameters
Name | Type |
---|---|
message | any |
writer? | Writer |
Returns
Writer