0.0.12 • Published 5 years ago

@csod-oss/react-props-to-docs-ts v0.0.12

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

react-props-to-docs-ts

npm install @csod-oss/react-props-to-docs-ts --save-dev

Parse out documentation from the typescript interface that defines a React component's props.

import { propsParser } from '@csod-oss/react-props-to-docs-ts';
const docs = docsParser($packageName, component);
  1. Find declaration file (*.d.ts) based on component name
    • accept declaration filename paramater in options
    • use require.resolve to locate declaration
  2. Parse file and search for Component to retreive the documenting interface from its jsdoc comment
  3. Search for interface, retreive properties and corresponding typings with jsdocs
0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago