GithubHelp home page GithubHelp logo

Comments (7)

sergiop avatar sergiop commented on June 12, 2024 1

@affanshahid I don't know if it's related, but with this:

type Type = 'default' | 'action' | 'destroy'

export interface ButtonProps {
  label?: string
  type?: Type
}

I get the following:
Schermata 2019-10-03 alle 23 32 06

Instead of this:
Schermata 2019-10-03 alle 23 32 41

from react-docgen-typescript-loader.

kelly-tock avatar kelly-tock commented on June 12, 2024 1

this is different @affanshahid I think but I would like this as well! I have union types defined that I use in multiple places,

export type TextColors = 'DEFAULT' | 'DISABLED';

and I just see TextColors as the description.

from react-docgen-typescript-loader.

gilbarbara avatar gilbarbara commented on June 12, 2024 1

Setting shouldExtractLiteralValuesFromEnum to true in the loader options fixed for me.
🎉

from react-docgen-typescript-loader.

henck avatar henck commented on June 12, 2024

I can verify that any type declared in a different file shows up as any.

from react-docgen-typescript-loader.

sami616 avatar sami616 commented on June 12, 2024

I can verify this is also happening to me

from react-docgen-typescript-loader.

gilbarbara avatar gilbarbara commented on June 12, 2024

I'm having a similar problem with union types but if I set the property as optional it expands the type...

Screen Shot 2019-11-05 at 21 32 24

from react-docgen-typescript-loader.

strothj avatar strothj commented on June 12, 2024

For support for enums, some info can be found here:
#87

For loading types from external files:
#80

The documentation was recently updated to include instructions on supporting files loaded from external files. I'm closing this issue but feel free to leave a comment if this is still a problem.

from react-docgen-typescript-loader.

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.