Git Product home page Git Product logo

Comments (6)

woutervh- avatar woutervh- commented on May 29, 2024 1

Hi @andykais

Good catch, recursive types are expanded indefinitely. I will make it a priority to support those as well.

Thanks!

from typescript-is.

woutervh- avatar woutervh- commented on May 29, 2024 1

hi @andykais

I've finished a large refactoring and as part of the consequences of the refactor recursive types are now supported.
Please try it out using vesion 0.10.0 and let me know if it's working or if you have some other feedback.

Thanks!

Edit

Here is a link to the test case: https://github.com/woutervh-/typescript-is/blob/master/test/issue-12.ts

from typescript-is.

andykais avatar andykais commented on May 29, 2024 1

that did the trick! I have officially moved my project over to typescript-is! andykais/scrape-pages@03f9ddf

Also, nice work improving those error messages! They are much clearer now! My problem has been addressed, so I will close this issue now

from typescript-is.

andykais avatar andykais commented on May 29, 2024

😲 you work fast! I see they work on your example, but I used your assertions against my slightly more complex type (ConfigInit) and it seems to consider any object as valid. I played around a little, and I believe the issue is when there are optional fields on a type, the recursive checks no longer work.

I created a pr which fails a test to describe the behavior simply. Let me know if you need more info, and thanks again!

from typescript-is.

woutervh- avatar woutervh- commented on May 29, 2024

hi @andykais

Again, good catch! There was a mistake in the code generation related to optional objects.
I have fixed it and released it as version 0.10.1.
Please try again.

Thanks!

from typescript-is.

tavindev avatar tavindev commented on May 29, 2024

I'm getting this exact error with 0.18.2 using equals<>()

from typescript-is.

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.