@types/rollup-plugin-json

  • Version 3.0.7
  • Published
  • 4.4 kB
  • 1 dependency
  • MIT license

Install

npm i @types/rollup-plugin-json
yarn add @types/rollup-plugin-json
pnpm add @types/rollup-plugin-json

Overview

TypeScript definitions for rollup-plugin-json

Index

Functions

function json

json: (options?: json.Options) => Plugin;

    Interfaces

    interface Options

    interface Options {}

      property exclude

      exclude?: string | string[] | undefined;

        property include

        include?: string | string[] | undefined;
        • All JSON files will be parsed by default, but you can also specifically include/exclude files

        property indent

        indent?: string | undefined;
        • specify indentation for the generated default export — defaults to '\t' '\t'

        property preferConst

        preferConst?: boolean | undefined;
        • for tree-shaking, properties will be declared as variables, using either var or const false

        Package Files (1)

        Dependencies (1)

        Dev Dependencies (0)

        No dev dependencies.

        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/@types/rollup-plugin-json.

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