# Typescript?

**URL:** <https://community.homey.app/t/typescript/31987>\
**Category:** Developers\
**Created:** [July 3, 2020, 11:56am UTC](https://community.homey.app/t/typescript/31987 "2020-07-03T11:56:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![henit](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henit/32/27054_2.png) [@henit](https://community.homey.app/u/henit)\
**Post date:** [July 3, 2020, 11:56am UTC](https://community.homey.app/t/typescript/31987/1 "2020-07-03T11:56:28Z")

</div>

Is there any typescript definitions available for homey entities?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [July 4, 2020, 8:19pm UTC](https://community.homey.app/t/typescript/31987/2 "2020-07-04T20:19:29Z")

</div>

meaning?

---

<div class="post-metadata">

**Author:** ![henit](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henit/32/27054_2.png) [@henit](https://community.homey.app/u/henit)\
**Post date:** [July 21, 2020, 9:34am UTC](https://community.homey.app/t/typescript/31987/3 "2020-07-21T09:34:39Z")

</div>

I am trying to write an app in typescript. But when I don’t have any type definitions available, such as:

```
interface Device {
  id: string;
  name: string;
  ...
}

```

I have to define them myself and maintain them in line with changes in the Homey code to ensure that type-related bugs in my code are avoided, which sort of limits the gains of defining types. So I was hoping there would be official type definitions that are maintained by the devs along with the changes in the Homey code/API.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 21, 2020, 9:47am UTC](https://community.homey.app/t/typescript/31987/4 "2020-07-21T09:47:54Z")

</div>

The [`homey`](https://www.npmjs.com/package/homey) package contains type definitions: [https://github.com/athombv/node-homey/tree/master/sdk/lib](https://github.com/athombv/node-homey/tree/master/sdk/lib)

---

<div class="post-metadata">

**Author:** ![henit](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henit/32/27054_2.png) [@henit](https://community.homey.app/u/henit)\
**Post date:** [July 21, 2020, 10:36am UTC](https://community.homey.app/t/typescript/31987/5 "2020-07-21T10:36:56Z")

</div>

Ah, didn’t find them earlier, thanks!

---

<div class="post-metadata">

**Author:** ![Anders](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders/32/42481_2.png) [@Anders](https://community.homey.app/u/Anders)\
**Post date:** [July 6, 2021, 11:41am UTC](https://community.homey.app/t/typescript/31987/6 "2021-07-06T11:41:09Z")

</div>

For anyone else looking for these in the newest version of the sdk as they were removed…:

[chore: remove sdk types by tjallingt · Pull Request #130 · athombv/node-homey · GitHub](https://github.com/athombv/node-homey/pull/130)

---

<div class="post-metadata">

**Author:** ![OlivierZal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/olivierzal/32/61843_2.png) [@OlivierZal](https://community.homey.app/u/OlivierZal)\
**Post date:** [November 8, 2022, 11:20pm UTC](https://community.homey.app/t/typescript/31987/7 "2022-11-08T23:20:32Z")

</div>

> **[node-homey-apps-sdk-v3-types/lib at master ·...](https://github.com/athombv/node-homey-apps-sdk-v3-types/tree/master/lib)**
>
> master/lib
