@types/rollup-plugin-json
@types/rollup-plugin-json
npm i @types/rollup-plugin-json
@types/rollup-plugin-json

@types/rollup-plugin-json

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

3.0.3 (see all)License:MITTypeScript:Built-In
npm i @types/rollup-plugin-json
Readme

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.

index.d.ts

// Type definitions for rollup-plugin-json 3.0
// Project: https://github.com/rollup/rollup-plugin-json#readme
// Definitions by: Andy Mockler <https://github.com/asmockler>
//                 Martin Hochel <https://github.com/hotell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="node" />
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

Credits

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

Downloads/wk

3.3K

GitHub Stars

41K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

637

OPEN PRs

201
VersionTagPublished
3.0.3
latest
1yr ago
3.0.3
ts4.7
1yr ago
3.0.3
ts4.6
1yr ago
3.0.3
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate