Giter Site home page Giter Site logo

Comments (9)

shannonhochkins avatar shannonhochkins commented on June 25, 2024 1

the mian difference i can see, is that at the bottom of the old types, there was a large export list re-exporting every type, the only thing i can think of is that for some reason your IDE isnt picking uop the types because of this, but i dont think so...

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on June 25, 2024

I do test thoroughly before I deploy, sometimes it's easy to miss things, when you create an issue can you please be a bit more detailed? What does your tsconfig look like? Does your generated type file have everything inside it? Have you tried restarting the ts server? Restarting vscode?

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on June 25, 2024

I have setup types correctly for lights / climates, but that's it currently - in the home assistant gihub repository, they have custom types for each entity type by domain, eg here: https://github.com/home-assistant/frontend/blob/155e9d9e95a85a3bb555f238fadd2c00ca7d3d69/src/data/alarm_control_panel.ts#L27

I have looked at potentially scraping and pulling theese from the github repository, however haven't found a nice solution for this yet as they're not named consistently, but i will do some further digging

from ha-component-kit.

yep-dev avatar yep-dev commented on June 25, 2024

Okay then, if it works all well for you. If someone has the same issue, I found a workaround – copying the generated entity names into the index.d.ts file in linked local @hakit/core
Works good enough, I won't burden you with that then as we have different IDEs, and debugging types linking being now in new (better, but somehow not liked by JetBrains IDE) format you upgraded to is pain

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on June 25, 2024

It still may help to see your setup yo enderatand what night be causing you to have issues mate!

from ha-component-kit.

yep-dev avatar yep-dev commented on June 25, 2024

sure, you can see my setup here https://github.com/yep-dev/ha-react-dashboard
so again, the only change I was doing was changing the @hakit/core version and installing it back and forth that caused it to lose those completions, but that could be because my setup or IDE can't accommodate the changes

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on June 25, 2024

I will check this out a little later and see if I can spot anything!

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on June 25, 2024

you mentioned:

format you upgraded to is pain

Why is it a pain?

I setup a completely new fresh test and it's all working with intellisense, I don't believe there's anything wrong with the types, I also checked out your repo and ran the type sync and intellisense and type validation is working fine so I'd say it is something to do with your IDE, bit hard to replicate unfortunately

from ha-component-kit.

yep-dev avatar yep-dev commented on June 25, 2024

debugging types linking being now in new (better, but somehow not liked by JetBrains IDE) format you upgraded to is pain

I meant that debugging [stuff not liked by my IDE] (that just happens to be the new format) is pain

from ha-component-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.