Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 679 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 679 Bytes

ts-docgen-next

npm

✈️ Install

npm i -DE ts-docgen-next

☄️ Usage

As webpack-loader

component.tsx

import { FC } from 'react'

interface ComponentProps {
  property: string
}

export const Component: FC<ComponentProps> = () => null

documentation.mdx

import { ComponentProps } from '!!ts-docgen-next/loader!./component.tsx'

<PropsTable value={ComponentProps} />

📜 License

Project is MIT licensed.