See https://github.com/paritytech/scale-ts/issues/129#issuecomment-1452929923
See #129 (comment)