flowgen

  • Version 1.21.0
  • Published
  • 171 kB
  • 8 dependencies
  • ISC license

Install

npm i flowgen
yarn add flowgen
pnpm add flowgen

Overview

Generate flowtype definition files from TypeScript

Index

Variables

Functions

Variables

variable _default

const _default: {
beautify: typeof beautify;
compiler: {
reset: (options?: import('./options').Options) => void;
compile: (args_0: any) => string;
setChecker(typeChecker: any): void;
getTransformers(
options?: import('./options').Options
): ((ctx: any) => any)[];
compileTest: (testPath: string, target: string) => void;
compileDefinitionString: (
string: string,
options?: import('./options').Options
) => string;
compileDefinitionFile: (
definitionPath: string,
options?: import('./options').Options,
mapSourceCode?: (source: string, fileName: string) => string
) => string;
compileDefinitionFiles: (
definitionPaths: string[],
options?: import('./options').Options,
mapSourceCode?: (source: string, fileName: string) => string
) => [string, string][];
};
};

    variable compiler

    const compiler: {
    reset: (options?: Options) => void;
    compile: (args_0: ts.SourceFile) => string;
    setChecker(typeChecker: ts.TypeChecker): void;
    getTransformers(
    options?: Options
    ): ((ctx: ts.TransformationContext) => ts.Transformer<any>)[];
    compileTest: (testPath: string, target: string) => void;
    compileDefinitionString: (string: string, options?: Options) => string;
    compileDefinitionFile: (
    definitionPath: string,
    options?: Options,
    mapSourceCode?: (
    source: string | undefined,
    fileName: string
    ) => string | undefined
    ) => string;
    compileDefinitionFiles: (
    definitionPaths: string[],
    options?: Options,
    mapSourceCode?: (
    source: string | undefined,
    fileName: string
    ) => string | undefined
    ) => Array<[string, string]>;
    };

      Functions

      function beautify

      beautify: (str: string) => string;

        Package Files (3)

        Dependencies (8)

        Dev Dependencies (26)

        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/flowgen.

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