Skip to content

Commit

Permalink
feat: export Rollup*Options interfaces (#53)
Browse files Browse the repository at this point in the history
* feat: export Rollup*Options interfaces

* test: import options in types testing files
  • Loading branch information
Kocal authored and shellscape committed Nov 24, 2019
1 parent 0c7a2d8 commit 4f0bff5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/buble/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface TransformOptions {
unicodeRegExp?: boolean;
}

interface RollupBubleOptions {
export interface RollupBubleOptions {
/**
* A minimatch pattern, or array of patterns, of files that should be
* processed by this plugin (if omitted, all files are included by default)
Expand Down
2 changes: 1 addition & 1 deletion packages/buble/test/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import buble from '..';
import buble, { RollupBubleOptions } from '..';

/** @type {import("rollup").RollupOptions} */
const config = {
Expand Down
2 changes: 1 addition & 1 deletion packages/inject/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Plugin } from "rollup";

type Injectment = string | [string, string];

interface RollupInjectOptions {
export interface RollupInjectOptions {
/**
* A minimatch pattern, or array of patterns, of files that should be
* processed by this plugin (if omitted, all files are included by default)
Expand Down
2 changes: 1 addition & 1 deletion packages/inject/test/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
import { dirname } from "path";

import inject from "..";
import inject, { RollupInjectOptions } from "..";

/** @type {import("rollup").RollupOptions} */
const config = {
Expand Down
2 changes: 1 addition & 1 deletion packages/json/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Plugin } from 'rollup';

interface RollupJsonOptions {
export interface RollupJsonOptions {
/**
* All JSON files will be parsed by default,
* but you can also specifically include files
Expand Down
2 changes: 1 addition & 1 deletion packages/json/test/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import json from '..';
import json, { RollupJsonOptions } from '..';

/** @type {import("rollup").RollupOptions} */
const config = {
Expand Down
2 changes: 1 addition & 1 deletion packages/replace/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Plugin } from 'rollup';

type Replacement = string | ((id: string) => string);

interface RollupReplaceOptions {
export interface RollupReplaceOptions {
/**
* A minimatch pattern, or array of patterns, of files that should be
* processed by this plugin (if omitted, all files are included by default)
Expand Down
2 changes: 1 addition & 1 deletion packages/replace/test/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
import { dirname } from 'path';

import replace from '..';
import replace, { RollupReplaceOptions } from '..';

/** @type {import("rollup").RollupOptions} */
const config = {
Expand Down

0 comments on commit 4f0bff5

Please sign in to comment.