ssz icon indicating copy to clipboard operation
ssz copied to clipboard

Type revision

Open mpetrunic opened this issue 4 years ago • 1 comments

Since my attempt to improve types just scratched surface, I would suggest some bottom to top type revision

I would like to confirm some basic presumptions:

type BasicValue = bigint | number | boolean | Uint8Array:
type CompositeValue = Record<string, unknown> | ArrayLike<BasicValue | CompositeValue> | {}; // last one is hack for eth2 type interfaces to work. We could maybe just add it to Container generic?

mpetrunic avatar Dec 23 '20 14:12 mpetrunic

cc @wemeetagain Please write down other predicates that must be respected for other ssz primitives.

mpetrunic avatar Dec 23 '20 14:12 mpetrunic