@component-controls/react-docgen-typescript-info
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

Table of contents

Overview

Extract props info from react typescript components:

Installation

This package is usually installed as part of the @component-controls package, but you can also install it standalone to extract props info from react typescript components

$ npm install @component-controls/react-docgen-typescript-info --save-dev

API

run

function

run API to generate react-docgen-typescript props information tables.

defined in @component-controls/react-docgen-typescript-info/props-info/react-docgen-typescript/src/index.ts

parameters

Name Type Description
options
type
transformProps: function (
props*: ComponentDoc[]
) =>
ComponentDoc
expression: ts.Symbol
displayName*: string
filePath*: string
description*: string
props*
[string]: T
methods*: Method[]
tags
[string]: T

propFilter: StaticPropFilter | PropFilter
componentNameResolver: function (
exp*: Symbol
source*: SourceFile
) => string | undefined | null | false
shouldExtractLiteralValuesFromEnum: boolean
shouldRemoveUndefinedFromOptional: boolean
shouldExtractValuesFromUnion: boolean
skipChildrenPropWithoutDoc: boolean
savePropValueAsString: boolean
shouldIncludePropTagMap: boolean
shouldIncludeExpression: boolean
customComponentTypes: string[]
configuration options
returns PropsInfoExtractorFunction a callable function of type PropsInfoExtractorFunction

Readme

Keywords

none

Package Sidebar

Install

npm i @component-controls/react-docgen-typescript-info

Weekly Downloads

2

Version

4.0.3

License

MIT

Unpacked Size

49.8 kB

Total Files

11

Last publish

Collaborators

  • atanasster