ts-import-plugin

  • Version 3.0.0
  • Published
  • 57.2 kB
  • No dependencies
  • MIT license

Install

npm i ts-import-plugin
yarn add ts-import-plugin
pnpm add ts-import-plugin

Overview

babel-plugin-import TypeScript version

Index

Functions

function createTransformer

createTransformer: (
_options?: Partial<Options> | Array<Partial<Options>>
) => (context: ts.TransformationContext) => (node: ts.Node) => ts.Node | undefined;

    Interfaces

    interface ImportedStruct

    interface ImportedStruct {}

      property importName

      importName: string;

        property variableName

        variableName?: string;

          interface Options

          interface Options {}

            property camel2DashComponentName

            camel2DashComponentName?: boolean;

              property camel2UnderlineComponentName

              camel2UnderlineComponentName?: boolean;

                property failIfNotFound

                failIfNotFound?: boolean;

                  property libraryDirectory

                  libraryDirectory?: ((name: string) => string) | string;

                    property libraryName

                    libraryName?: string;

                      property libraryOverride

                      libraryOverride?: boolean;

                        property resolveContext

                        resolveContext?: string[];

                          property style

                          style?:
                          | boolean
                          | 'css'
                          | 'css.web'
                          | string
                          | ((name: string) => string | false);

                            property transformToDefaultImport

                            transformToDefaultImport?: boolean;

                              Package Files (1)

                              Dependencies (0)

                              No dependencies.

                              Dev Dependencies (44)

                              Peer Dependencies (1)

                              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/ts-import-plugin.

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