mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Added type for rollup-plugin-peer-deps-external package (#38722)
* added rollup-plugin-peer-deps-external * fixed error * fixed formatting * returned back formatting * fixed travis build
This commit is contained in:
committed by
Ryan Cavanaugh
parent
719ac21643
commit
634abdf468
@@ -0,0 +1,23 @@
|
||||
// Type definitions for rollup-plugin-peer-deps-external 2.2
|
||||
// Project: https://github.com/Updater/rollup-plugin-peer-deps-external
|
||||
// Definitions by: Nick <https://github.com/fobdy>,
|
||||
// Max Boguslavskiy <https://github.com/maxbogus>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.0
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { Plugin } from 'rollup';
|
||||
|
||||
declare namespace PeerDepsExternalPlugin {
|
||||
interface PluginPeerDepsExternalOptions {
|
||||
packageJsonPath?: string;
|
||||
includeDependencies?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare function PeerDepsExternalPlugin(
|
||||
options?: PeerDepsExternalPlugin.PluginPeerDepsExternalOptions
|
||||
): Plugin;
|
||||
|
||||
export = PeerDepsExternalPlugin;
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"rollup": "^0.63.4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import external from 'rollup-plugin-peer-deps-external';
|
||||
|
||||
external();
|
||||
external({});
|
||||
external({ includeDependencies: true, packageJsonPath: '' });
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"esModuleInterop": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"rollup-plugin-peer-deps-external-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user