struct<T>(name, fields, options?): BcsType<{ [K in string | number | symbol]: T[K] extends BcsType<U, any> ? U : never }, { [K in string | number | symbol]: T[K] extends BcsType<any, U> ? U : never }>
Creates a BcsType representing a struct of a given set of fields
The fields of the struct. The order of the fields affects how data is serialized and deserialized
Optionaloptions: Omit<BcsTypeOptions<{ [K in string | number | symbol]: T[K] extends BcsType<U, any> ? U : never }, { [K in string | number | symbol]: T[K] extends BcsType<any, U> ? U : never }>, "name">
Returns BcsType<{ [K in string | number | symbol]: T[K] extends BcsType<U, any> ? U : never }, { [K in string | number | symbol]: T[K] extends BcsType<any, U> ? U : never }>
tuple<const Types>(types, options?): BcsType<{ -readonly [K in string | number | symbol]: Types[K<K>] extends BcsType<T, any> ? T : never }, { [K in string | number | symbol]: Types[K<K>] extends BcsType<any, T> ? T : never }>
Creates a BcsType representing a tuple of a given set of types
Optionaloptions: BcsTypeOptions<{ -readonly [K in string | number | symbol]: Types[K<K>] extends BcsType<T, any> ? T : never }, { [K in string | number | symbol]: Types[K<K>] extends BcsType<any, T> ? T : never }>
Returns BcsType<{ -readonly [K in string | number | symbol]: Types[K<K>] extends BcsType<T, any> ? T : never }, { [K in string | number | symbol]: Types[K<K>] extends BcsType<any, T> ? T : never }>
Creates a BcsType that can be used to read and write boolean values.