3.46.12 • Published 3 years ago

@structured-types/instant-documentation-plugin v3.46.12

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Playground Instant Documentation

A TypeScript playground plugin which shows instant documentation for exported symbols in typescript, jsdoc and react files.

./instant-docs.jpg

Running this plugin

or

  • Open up the TypeScript Playground
  • Go the "Plugins" in the sidebar
  • Look for "Plugins from npm"
  • Add "@structured-types/instant-documentation-plugin"
  • Reload the browser

Then it will show up as a tab in the sidebar.

git clone https://github.com/ccontrols/structured-types
yarn install
cd packages/instant-documentation-plugin
yarn start

Then tick the box for starting plugin development inside the TypeScript Playground.

Example

To start quickly copy/paste the following example in the typescript playground code editor, the click Extract:

import React, { FC } from 'react';
/**
 * MyComponent properties.
 */
type OwnProps = {
  /** stringProp description */
  stringProp?: string;

  /** numberProp description */
  numberProp: number;
  person?: {
    address: {
      street: string;
      zip: string;
      city: string;
    };
    age: number;
  };
};

/**
 * MyComponent special component
 */
export const MyComponent: FC<OwnProps> = ({ stringProp }) => (
  <div>{stringProp}</div>
);

MyComponent.defaultProps = {
  stringProp: 'test',
};

VScode plugin

You can also check the VSCode instant documentation plugin. It can document types across multiple files, and also jump to the definition of a property.

3.46.12

3 years ago

3.46.11

3 years ago

3.46.10

3 years ago

3.46.9

3 years ago

3.46.8

3 years ago

3.46.7

3 years ago

3.41.0

3 years ago

3.41.1

3 years ago

3.43.0

3 years ago

3.41.2

3 years ago

3.43.1

3 years ago

3.45.0

3 years ago

3.43.2

3 years ago

3.43.3

3 years ago

3.43.4

3 years ago

3.40.0

3 years ago

3.40.1

3 years ago

3.42.0

3 years ago

3.40.2

3 years ago

3.42.1

3 years ago

3.44.0

3 years ago

3.40.4

3 years ago

3.44.1

3 years ago

3.40.5

3 years ago

3.46.0

3 years ago

3.44.2

3 years ago

3.40.6

3 years ago

3.46.1

3 years ago

3.44.3

3 years ago

3.40.7

3 years ago

3.46.2

3 years ago

3.40.10

3 years ago

3.40.8

3 years ago

3.46.3

3 years ago

3.40.9

3 years ago

3.46.4

3 years ago

3.46.5

3 years ago

3.46.6

3 years ago

3.39.10

3 years ago

3.39.9

3 years ago

3.39.8

3 years ago

3.39.7

3 years ago

3.39.6

3 years ago

3.39.5

3 years ago

3.39.4

3 years ago

3.39.3

3 years ago

3.39.2

4 years ago

3.39.1

4 years ago

3.39.0

4 years ago

3.38.1

4 years ago

3.38.0

4 years ago

3.37.1

4 years ago

3.37.0

4 years ago