mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Switch incorrect 'export default' to 'export ='
This commit is contained in:
Vendored
+1
-1
@@ -6,4 +6,4 @@
|
||||
|
||||
import route from './lib/index';
|
||||
|
||||
export default route;
|
||||
export = route;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { default as route } from 'riot-route';
|
||||
import route = require('riot-route');
|
||||
import routeFromTag from 'riot-route/lib/tag';
|
||||
|
||||
/* () */
|
||||
|
||||
Vendored
+20
-17
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user