DefinitelyTyped/types/rollup-plugin-visualizer/rollup-plugin-visualizer-tests.ts
Max Boguslavsky a77838da88 Added rollup-plugin-visualizer (#38676)
* added rollup-plugin-visualizer

* corrected formatting

* fixed errors found after test run

* fixed error

* fixed error

* fixed errors

* corrected package.json

* corrected package according to review comment; added main author to package
2019-10-01 09:32:17 -07:00

14 lines
336 B
TypeScript

import visualizer, { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
visualizer(); // $ExpectType Plugin
const fullOptions: PluginVisualizerOptions = {
filename: 'filename',
title: 'title',
sourcemap: true,
open: true,
template: '',
bundlesRelative: true,
};
visualizer({});
visualizer(fullOptions);