# Typescript exports

**URL:** <https://forum.techsoft3d.com/t/typescript-exports/4274>\
**Category:** HOOPS Visualize Web\
**Tags:** webviewer\
**Created:** [December 9, 2024, 2:19pm UTC](https://forum.techsoft3d.com/t/typescript-exports/4274 "2024-12-09T14:19:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/zak/32/1678_2.png) [@zak](https://forum.techsoft3d.com/u/zak)\
**Post date:** [December 9, 2024, 2:19pm UTC](https://forum.techsoft3d.com/t/typescript-exports/4274/1 "2024-12-09T14:19:33Z")

</div>

There are a couple of symbols that are part of the public api that are not exported, making it difficult to work with in typescript.

- `FaceType` - this is returned by `Face::type()`, which is in turn returned by `getFaceProperty`
- `EdgeType` - same idea as above
- The individual types of `Face` & `Edge` unions - e.g. `Face` is exported, but none of the union members, e.g. `PlaneElement`

workaround is to hand type an interface and cast it, which isn’t idea if the hoops interface changes.

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [December 9, 2024, 9:14pm UTC](https://forum.techsoft3d.com/t/typescript-exports/4274/2 "2024-12-09T21:14:52Z")

</div>

Hello @zak,

I can tell you that we have received requests to effectively “un-deprecate” the `Subentity` properties which was previously available in the public API. For now, while less than ideal, you will need to define your own enums corresponding to the `SubentityProperties` enums found in:

_HOOPS\_Communicator\_2024.X.x\web\_viewer@hoops\web-viewer\lib\internal\SubentityProperties.d.ts_

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![zak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/zak/32/1678_2.png) [@zak](https://forum.techsoft3d.com/u/zak)\
**Post date:** [December 9, 2024, 9:48pm UTC](https://forum.techsoft3d.com/t/typescript-exports/4274/3 "2024-12-09T21:48:58Z")

</div>

Thanks, yep that’s my workaround for now. Looking forwarding to seeing those entities published in the public api 🙂
