Voted: { create<I>(base?): Voted; decode(input,
length?): Voted; encode(message,
writer?): Writer; fromJSON(object): Voted; fromPartial<I>(object): Voted; toJSON(message): unknown; } Type declaration
create:function
- create<I>(base?): Voted
Type Parameters
- I extends {
action?: string;
module?: string;
poll?: string;
state?: string;
voter?: string;
} & {
action?: string;
module?: string;
poll?: string;
state?: string;
voter?: string;
} & {
[K in string | number | symbol]: never
}
decode:function
- decode(input, length?): Voted
Parameters
- input: Uint8Array | Reader
Optional
length: number
encode:function
- encode(message, writer?): Writer
Parameters
- message: Voted
- writer: Writer = ...
Returns Writer
fromJSON:function
fromPartial:function
- fromPartial<I>(object): Voted
Type Parameters
- I extends {
action?: string;
module?: string;
poll?: string;
state?: string;
voter?: string;
} & {
action?: string;
module?: string;
poll?: string;
state?: string;
voter?: string;
} & {
[K in string | number | symbol]: never
}
toJSON:function
- toJSON(message): unknown
Returns unknown