# Is there an easy way to extract the type dependency tree from the DAML LF API Type Signature package?

**URL:** <https://forum.canton.network/t/is-there-an-easy-way-to-extract-the-type-dependency-tree-from-the-daml-lf-api-type-signature-package/6610>\
**Category:** App Development\
**Created:** [May 30, 2023, 11:41am UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-the-type-dependency-tree-from-the-daml-lf-api-type-signature-package/6610 "2023-05-30T11:41:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [May 30, 2023, 11:41am UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-the-type-dependency-tree-from-the-daml-lf-api-type-signature-package/6610/1 "2023-05-30T11:41:51Z")

</div>

I’m using the the [DAML LF API Type Signature](https://mvnrepository.com/artifact/com.daml/daml-lf-api-type-signature) package and now I more or less understand how to extract type signatures.

I’d like to get the dependencies between custom types. Extracting this in a recursive way from the field definitions seems to be somewhat cumbersome. So I’m interested if there is an OOB way to do it.

Maybe @stefanobaghino-da or @Stephen can tell me the answer, or any of you who is using this library regularly.

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stephen/32/102_2.png) [@Stephen](https://forum.canton.network/u/Stephen)\
**Post date:** [May 30, 2023, 1:57pm UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-the-type-dependency-tree-from-the-daml-lf-api-type-signature-package/6610/2 "2023-05-30T13:57:51Z")

</div>

Can you show me what you’re doing, and maybe I can suggest a simpler way to do it?

---

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [May 30, 2023, 2:50pm UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-the-type-dependency-tree-from-the-daml-lf-api-type-signature-package/6610/3 "2023-05-30T14:50:05Z")

</div>

Thank you, Stephen, it turns out I don’t actually need this. But I have another question for you, will post separately.
