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:
Max Boguslavsky
2019-10-02 14:44:53 -07:00
committed by Ryan Cavanaugh
parent 719ac21643
commit 634abdf468
5 changed files with 59 additions and 0 deletions
+23
View File
@@ -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" }