# Is there way to get the list of typealias?

**URL:** <https://discourse.julialang.org/t/is-there-way-to-get-the-list-of-typealias/2693>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 16, 2017, 8:49am UTC](https://discourse.julialang.org/t/is-there-way-to-get-the-list-of-typealias/2693 "2017-03-16T08:49:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YongHee-Kim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yonghee-kim/32/5965_2.png) [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Post date:** [March 16, 2017, 8:49am UTC](https://discourse.julialang.org/t/is-there-way-to-get-the-list-of-typealias/2693/1 "2017-03-16T08:49:34Z")

</div>

For example If I struct type like this

```julia

type Foo end

typealias Bar Foo 
typealias Something Foo

```

I want to know if there is way to get the list of typealias for `Foo` ( `Bar`, `Something`)

Thanks!

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [March 16, 2017, 12:37pm UTC](https://discourse.julialang.org/t/is-there-way-to-get-the-list-of-typealias/2693/2 "2017-03-16T12:37:02Z")

</div>

`typealias`es are just global constants and is removed in 0.6. If you don’t need an accurate list, you can just walk all globals (`names`) recursively and see if any of them is an alias.

---

<div class="post-metadata">

**Author:** ![YongHee-Kim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yonghee-kim/32/5965_2.png) [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Post date:** [March 16, 2017, 1:22pm UTC](https://discourse.julialang.org/t/is-there-way-to-get-the-list-of-typealias/2693/3 "2017-03-16T13:22:07Z")

</div>

My use case was that same object is being referred as multiple names from data I have. `ex)Price, Cost, Gold...` and I guess defining multiple names as typealias is not a good approach. I should cleanse data or find a better way to handle this.

Thank you for clearing thing up 👍
