react-docgen-typescript

A simple parser for react properties defined in typescript instead of propTypes.

MIT License

Downloads
18.8M
Stars
1.2K
Committers
84

Bot releases are hidden (Show)

react-docgen-typescript - v1.7.0

Published by pvasek about 6 years ago

  • Allow filtering by parent interface or type declaration - thanks to @rkostrzewski and his PR #111
react-docgen-typescript - v1.6.3

Published by pvasek about 6 years ago

  • Some components showing up as "Requireable" #106 - fixed thanks to @milesj and his PR #110
react-docgen-typescript - v1.6.2

Published by pvasek over 6 years ago

  • additional exports added to support easier integrations with other project (thanks to @strothj and his PR #104)
react-docgen-typescript - v1.6.1

Published by pvasek over 6 years ago

  • support shorthand default props (thanks to @milesj and his PR #99)
react-docgen-typescript - v1.6.0

Published by pvasek over 6 years ago

  • parse can be called with multiple source file paths (thanks to @marionebl PR #91)
  • upgraded typescript version and fixed parsing comment problem (thanks to @kbukum PR #97)
react-docgen-typescript - v1.5.0

Published by pvasek over 6 years ago

This is @milesj release. Thanks for that!

  • feat: folder name as a fallback for component name if file is index.tsx (@milesj PR #88)
  • fix: parser fails for defaultProps that use spreading syntax (@milesj PR #89)
react-docgen-typescript - v1.4.0

Published by pvasek over 6 years ago

  • use displayName as default component name (thanks to @argshook for his PR #87)
react-docgen-typescript - v1.3.2

Published by pvasek over 6 years ago

  • improving default props for stateless components (thanks to @chrisalbert for his PR #84)
  • improving tsconfig parsing fix for #83 (thanks to @yoiang for his PR #85)
react-docgen-typescript - v1.3.1

Published by pvasek over 6 years ago

  • default props doesn't work if they are not defined in place (thanks to @argshook for his PR #80)
react-docgen-typescript - v1.3.0

Published by pvasek over 6 years ago

  • extracting default props from stateless components (thanks to @ asilgag for his PR #78)
react-docgen-typescript - v1.2.6

Published by pvasek over 6 years ago

Type information added to package.json

react-docgen-typescript - v1.2.5

Published by pvasek over 6 years ago

Correct name for stateless components.

Thanks to @skeate and his #76 PR. This release closes issue about wrong names for stateless components #74.

react-docgen-typescript - v1.2.4

Published by pvasek over 6 years ago

Custom tsconfig.json can include comments.

Thanks to @eps1lon and his PR #75, the parsing of tsconfig.json uses the same code as the typescript itself. This enables to use whatever is allowed in typescript configuration as comments for example.

react-docgen-typescript - v1.2.3

Published by pvasek over 6 years ago

Default values as numbers are not parsed.

Fix for #62

react-docgen-typescript - v1.2.2

Published by pvasek over 6 years ago

Parser Options introduced

  • skipping undocumented properties
  • skipping particular properties
  • custom filter

Thanks to @dotcs and his PR #63.

react-docgen-typescript - v1.2.0

Published by pvasek almost 7 years ago

Added support for default exports (#47 fixed).

react-docgen-typescript - v1.1.0

Published by pvasek almost 7 years ago

Support default props via defaultProps or JSDoc (fixed issue #37 with PR #53)

All credits to Brett Jurgens (@brettjurgens)

react-docgen-typescript - v1.0.2

Published by pvasek about 7 years ago

#22 Props cannot extend from an interface using Pick

react-docgen-typescript - v1.0.1

Published by pvasek about 7 years ago

  • fixing issue #43
  • adding withDefaultConfig, withCustomConfig methods that should be used for importing parser.
  • default config extended for jsx: "React" option
react-docgen-typescript - v1.0.0

Published by pvasek about 7 years ago

Complete rewrite by @RoystonS.

Package Rankings
Top 0.87% on Npmjs.org
Badges
Extracted from project README
Build Status