variable Borsh.struct

A structure with pre-defined fields of various types.

Type

<T>(...fields: [string, AnyField][]) => Field<T>

Usage

import { Borsh } from ".";