hyperweb-io / hyperweb-io/telescope
Transpile generating types with different writers
- Dominant language
- TypeScript
- Stars
- 154
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
Transpile generating types with different writers resulting in code that cannot be used due to mismatch of types,
Type error: Type '{ typeUrl: string; encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; decode(input: Uint8Array | BinaryReader, length?: number): MsgGrant; ... 7 more ...; toProtoMsg(message: MsgGrant): MsgGrantProtoMsg; }' is not assignable to type 'GeneratedType'.
steps to replicate:
1. Download and install telescope v1.0.3
2. Telescope
3. generate
4. install
5. select the following packages cosmos, cosmos_proto, gogoproto, google, tendermint
6. Transpile,
7. open up generated code in src/codegen
8. open/browse cosmos/bank/v1beta/tx.registry.ts
9. error will be on MsgSend , MsgMultiSend
10. Type '{ typeUrl: string; encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; ... 7 more ...; toProtoMsg(message: MsgSend): MsgSendProtoMsg; }' is not assignable to type 'GeneratedType'.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.