@storybook/source-loader

  • Version 8.0.9
  • Published
  • 41.5 kB
  • 5 dependencies
  • MIT license

Install

npm i @storybook/source-loader
yarn add @storybook/source-loader
pnpm add @storybook/source-loader

Overview

Source loader

Index

Variables

variable _default

const _default: any;

    Functions

    function extractSource

    extractSource: (location: SourceBlock, lines: string[]) => string | null;
    • given a location, extract the text from the full source

    Interfaces

    interface LocationsMap

    interface LocationsMap {}

      index signature

      [key: string]: SourceBlock;

        interface SourceBlock

        interface SourceBlock {}

          property endBody

          endBody: SourceLoc;

            property endLoc

            endLoc: SourceLoc;

              property startBody

              startBody: SourceLoc;

                property startLoc

                startLoc: SourceLoc;

                  interface SourceLoc

                  interface SourceLoc {}

                    property col

                    col: number;

                      property line

                      line: number;

                        Package Files (1)

                        Dependencies (5)

                        Dev Dependencies (1)

                        Peer Dependencies (0)

                        No peer dependencies.

                        Badge

                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@storybook/source-loader.

                        • Markdown
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@storybook/source-loader)
                        • HTML
                          <a href="https://www.jsdocs.io/package/@storybook/source-loader"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>