mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 17:28:46 +03:00
85f93f54a0
* declare Interface, ToInterface, FromInterface in @daml/types library * generate ToInterface and FromTemplate companion declarations * add toInterface and unsafeFromInterface to template companion implementations * declare marker types for every interface * remove type parameter from interface companions' types * add the union for forward implements CHANGELOG_BEGIN - [TypeScript codegen] To exercise an interface choice on a template-typed contract ID, you must now explicitly convert the contract ID to an interface-typed ID. For example, where ``cid: ContractId<TemplateName>``, you can use ``TemplateName.toInterface(InterfaceName, cid)`` to produce a ``ContractId<InterfaceName>``. Interface contract IDs are also now typed as shown above; for example, the former type ``ContractId<InterfaceNameInterface<TemplateName>>`` would now simply be ``ContractId<InterfaceName>``. CHANGELOG_END |
||
---|---|---|
.. | ||
codegen-common | ||
codegen-main | ||
hs/bindings | ||
java | ||
scala | ||
ts |