ts-docgen-loader

1.0.0 • Public • Published

ts-docgen-loader

Webpack loader for generating documentation from typescript files.

Usage example

import props from "!!ts-docgen-loader!./Component.tsx";

<PropsTable props={props} />;
// Component.tsx

interface IProps {
  loading: boolean;
}

// The loader is looking for a default exported function
export default function Props(_props: IProps) {
  return null;
}

Props interface

interface IProp {
  name: string;
  optional: boolean;
  type: string;
  defaultValue?: string;
  description?: string;
}

Readme

Keywords

Package Sidebar

Install

npm i ts-docgen-loader

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

11.1 kB

Total Files

10

Last publish

Collaborators

  • yarastqt
  • postamentovich