Switch incorrect 'export default' to 'export ='

This commit is contained in:
Nathan Shively-Sanders
2019-03-20 09:18:48 -07:00
parent 74cfd562f6
commit 9679af3736
4 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -6,4 +6,4 @@
import route from './lib/index';
export default route;
export = route;
+1 -1
View File
@@ -1,4 +1,4 @@
import { default as route } from 'riot-route';
import route = require('riot-route');
import routeFromTag from 'riot-route/lib/tag';
/* () */
+20 -17
View File
@@ -8,22 +8,25 @@
/// <reference types="node" />
import { Plugin } from 'rollup';
export interface Options {
/**
* All JSON files will be parsed by default, but you can also specifically include/exclude files
*/
include?: string | string[];
exclude?: string | string[];
/**
* for tree-shaking, properties will be declared as variables, using either `var` or `const`
* @default false
*/
preferConst?: boolean;
/**
* specify indentation for the generated default export — defaults to '\t'
* @default '\t'
*/
indent?: string;
declare namespace json {
interface Options {
/**
* All JSON files will be parsed by default, but you can also specifically include/exclude files
*/
include?: string | string[];
exclude?: string | string[];
/**
* for tree-shaking, properties will be declared as variables, using either `var` or `const`
* @default false
*/
preferConst?: boolean;
/**
* specify indentation for the generated default export — defaults to '\t'
* @default '\t'
*/
indent?: string;
}
}
export default function json(options?: Options): Plugin;
declare function json(options?: json.Options): Plugin;
export = json;
@@ -1,4 +1,4 @@
import json from 'rollup-plugin-json';
import json = require('rollup-plugin-json');
json(); // $ExpectType Plugin