bcs : { bool ( options ?: BcsTypeOptions < boolean , boolean > ) : BcsType < boolean , boolean > ; bytes < T > ( size : T ,
options ?: BcsTypeOptions < Uint8Array , Iterable < number , any , any > > ) : BcsType < Uint8Array , Uint8Array > ; enum < T > ( name : string ,
values : T ,
options ?: Omit < BcsTypeOptions < EnumOutputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < U , any > ? U : true } > , EnumInputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < any , U > ? U : null | boolean | object } > > , "name" > ) : BcsType < EnumOutputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < U , any > ? U : true } > , EnumInputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < any , U > ? U : null | boolean | object } > > ; fixedArray < T , Input > ( size : number ,
type : BcsType < T , Input > ,
options ?: BcsTypeOptions < T [] , Iterable < Input , any , any > & { length : number ; } > ) : BcsType < T [] , Iterable < Input , any , any > & { length : number ; } > ; lazy < T > ( cb : ( ( ) => T ) ) : T ; map < K , V , InputK , InputV > ( keyType : BcsType < K , InputK > ,
valueType : BcsType < V , InputV > ) : BcsType < Map < K , V > , Map < InputK , InputV > > ; option < T , Input > ( type : BcsType < T , Input > ) : BcsType < null | T , undefined | null | Input > ; string ( options ?: BcsTypeOptions < string , string > ) : BcsType < string , string > ; struct < T > ( name : string ,
fields : T ,
options ?: 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" > ) : 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 : Types ,
options ?: 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 } > ) : 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 } > ; u128 ( options ?: BcsTypeOptions < string , string | number | bigint > ) : BcsType < string , string | number | bigint > ; u16 ( options ?: BcsTypeOptions < number , number > ) : BcsType < number , number > ; u256 ( options ?: BcsTypeOptions < string , string | number | bigint > ) : BcsType < string , string | number | bigint > ; u32 ( options ?: BcsTypeOptions < number , number > ) : BcsType < number , number > ; u64 ( options ?: BcsTypeOptions < string , string | number | bigint > ) : BcsType < string , string | number | bigint > ; u8 ( options ?: BcsTypeOptions < number , number > ) : BcsType < number , number > ; uleb128 ( options ?: BcsTypeOptions < number , number > ) : BcsType < number , number > ; vector < T , Input > ( type : BcsType < T , Input > ,
options ?: BcsTypeOptions < T [] , Iterable < Input , any , any > & { length : number ; } > ) : BcsType < T [] , Iterable < Input , any , any > & { length : number ; } > ; } = ... Type declaration bool : functionbool ( options ? ) : BcsType < boolean , boolean > Returns BcsType < boolean , boolean > bytes : functionbytes < T > ( size , options ? ) : BcsType < Uint8Array , Uint8Array > Parameters size : T Optional
options : BcsTypeOptions < Uint8Array , Iterable < number , any , any > > Returns BcsType < Uint8Array , Uint8Array > enum : functionenum < T > ( name , values , options ? ) : BcsType < EnumOutputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < U , any > ? U : true } > , EnumInputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < any , U > ? U : null | boolean | object } > > Type Parameters T extends Record < string , null | BcsType < any , any > > Returns BcsType < EnumOutputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < U , any > ? U : true } > , EnumInputShape < { [ K in string | number | symbol ] : T [ K ] extends BcsType < any , U > ? U : null | boolean | object } > > fixed Array : functionfixed Array < T , Input > ( size , type , options ? ) : BcsType < T [] , Iterable < Input , any , any > & { length : number ; } > Returns BcsType < T [] , Iterable < Input , any , any > & { length : number ; } > lazy : functionmap : functionoption : functionstring : functionstring ( options ? ) : BcsType < string , string > Returns BcsType < string , string > struct : functionstruct < 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 } > Type Parameters T extends Record < string , BcsType < any , any > > Parameters name : string fields : T Optional
options : 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 : functiontuple < 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 } > Type Parameters const Types extends readonly BcsType < any , any > [] 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 } > u128 : functionu128 ( options ? ) : BcsType < string , string | number | bigint > Returns BcsType < string , string | number | bigint > u16 : functionu256 : functionu256 ( options ? ) : BcsType < string , string | number | bigint > Returns BcsType < string , string | number | bigint > u32 : functionu64 : functionu64 ( options ? ) : BcsType < string , string | number | bigint > Returns BcsType < string , string | number | bigint > u8 : functionuleb128 : functionuleb128 ( options ? ) : BcsType < number , number > Returns BcsType < number , number > vector : functionvector < T , Input > ( type , options ? ) : BcsType < T [] , Iterable < Input , any , any > & { length : number ; } > Returns BcsType < T [] , Iterable < Input , any , any > & { length : number ; } >
Creates a BcsType that can be used to read and write boolean values.