@types/rollup-plugin-json
TypeScript icon, indicating that this package has built-in type declarations

3.0.7 • Public • Published

Installation

npm install --save @types/rollup-plugin-json

Summary

This package contains type definitions for rollup-plugin-json (https://github.com/rollup/rollup-plugin-json#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-json.

import { Plugin } from "rollup";

declare namespace json {
    interface Options {
        /**
         *  All JSON files will be parsed by default, but you can also specifically include/exclude files
         */
        include?: string | string[] | undefined;
        exclude?: string | string[] | undefined;
        /**
         *  for tree-shaking, properties will be declared as variables, using either `var` or `const`
         *  @default false
         */
        preferConst?: boolean | undefined;
        /**
         * specify indentation for the generated default export — defaults to '\t'
         * @default '\t'
         */
        indent?: string | undefined;
    }
}

declare function json(options?: json.Options): Plugin;
export = json;

Additional Details

  • Last updated: Fri, 01 Mar 2024 00:50:47 GMT
  • Dependencies: rollup

Credits

These definitions were written by Andy Mockler, and Martin Hochel.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rollup-plugin-json

Weekly Downloads

2,274

Version

3.0.7

License

MIT

Unpacked Size

4.4 kB

Total Files

5

Last publish

Collaborators

  • types