[BUG] - Property 'handle' in type 'AbstractContractHandler<State>' is not assignable to the same property in base type 'HandlerApi<State>'.
Opened this issue · 0 comments
dtfiedler commented
Describe the bug
Property 'handle' in type 'AbstractContractHandler<State>' is not assignable to the same property in base type 'HandlerApi<State>'.
Type '<Input, Result>(executionContext: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/ExecutionContext").ExecutionContext<State>, currentResult: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/modules/StateEva...' is not assignable to type '<Input, Result>(executionContext: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/ExecutionContext").ExecutionContext<State>, currentResult: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/modules/StateEva...'. Two different types with this name exist, but they are unrelated.
Type 'Promise<InteractionResult<State, Result | undefined>>' is not assignable to type 'Promise<(Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>) | (Without<...> & ... 1 more ... & { ...; })>'.
Type 'InteractionResult<State, Result | undefined>' is not assignable to type '(Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>) | (Without<...> & ... 1 more ... & { ...; })'.
Type 'Without<WarpInteractionResult<State, Result | undefined>, AoInteractionResult<Result | undefined>> & AoInteractionResult<...>' is not assignable to type '(Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>) | (Without<...> & ... 1 more ... & { ...; })'.
Type 'Without<WarpInteractionResult<State, Result | undefined>, AoInteractionResult<Result | undefined>> & AoInteractionResult<...>' is not assignable to type 'Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>'.
Type 'Without<WarpInteractionResult<State, Result | undefined>, AoInteractionResult<Result | undefined>> & AoInteractionResult<...>' is not assignable to type 'AoInteractionResult<Result>'.
Types of property 'Output' are incompatible.
Type 'Result | undefined' is not assignable to type 'Result'.
'Result' could be instantiated with an arbitrary type which could be unrelated to 'Result | undefined'.ts(2416)
To Reproduce
Steps to reproduce the behavior.
Refer to this branch in the arns-service.
Desktop (please complete the following information):
- OS: [e.g. Linux] - linx
- Node.js version -
v18.19.1
- warp-contracts SDK version -
v1.45.0