1 | // Type definitions for rollup-plugin-json 3.0
|
2 | // Project: https://github.com/rollup/rollup-plugin-json#readme
|
3 | // Definitions by: Andy Mockler <https://github.com/asmockler>
|
4 | // Martin Hochel <https://github.com/hotell>
|
5 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
6 | // TypeScript Version: 2.3
|
7 |
|
8 | /// <reference types="node" />
|
9 | import { Plugin } from 'rollup';
|
10 |
|
11 | declare namespace json {
|
12 | interface Options {
|
13 | /**
|
14 | * All JSON files will be parsed by default, but you can also specifically include/exclude files
|
15 | */
|
16 | include?: string | string[] | undefined;
|
17 | exclude?: string | string[] | undefined;
|
18 | /**
|
19 | * for tree-shaking, properties will be declared as variables, using either `var` or `const`
|
20 | * @default false
|
21 | */
|
22 | preferConst?: boolean | undefined;
|
23 | /**
|
24 | * specify indentation for the generated default export — defaults to '\t'
|
25 | * @default '\t'
|
26 | */
|
27 | indent?: string | undefined;
|
28 | }
|
29 | }
|
30 |
|
31 | declare function json(options?: json.Options): Plugin;
|
32 | export = json;
|