html-webpack-tags-plugin: Provides its own types (#39598)

This commit is contained in:
Alexander T
2019-10-28 20:41:51 -07:00
committed by Jesse Trinity
parent 90049e65a6
commit 814b63adca
5 changed files with 6 additions and 65 deletions
+6
View File
@@ -1434,6 +1434,12 @@
"sourceRepoURL": "https://github.com/sindresorhus/html-tags",
"asOfVersion": "3.0.0"
},
{
"libraryName": "html-webpack-tags-plugin",
"typingsPackageName": "html-webpack-tags-plugin",
"sourceRepoURL": "https://github.com/jharris4/html-webpack-tags-plugin",
"asOfVersion": "2.0.16"
},
{
"libraryName": "http-status-codes",
"typingsPackageName": "http-status-codes",
@@ -1,19 +0,0 @@
import HtmlWebpackPlugin = require('html-webpack-plugin');
import * as tags from 'html-webpack-tags-plugin';
const optionsArray: tags.Options[] = [
{
tags: 'tag'
},
{
tags: ['tags', 'hugs'],
files: 'readme.txt'
},
{
tags: ['tags', 'hugs'],
files: 'readme.txt',
append: true
}
];
const plugins: HtmlWebpackPlugin[] = optionsArray.map(options => new HtmlWebpackPlugin(options));
-22
View File
@@ -1,22 +0,0 @@
// Type definitions for html-webpack-tags-plugin 2.0
// Project: https://github.com/jharris4/html-webpack-tags-plugin
// Definitions by: Vladimir Grenaderov <https://github.com/VladimirGrenaderov>
// Max Boguslavskiy <https://github.com/maxbogus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Plugin } from 'webpack';
declare namespace HtmlWebpackTagsPlugin {
interface Options {
tags: string | string[];
files?: string | string[];
append?: boolean;
}
}
declare class HtmlWebpackTagsPlugin extends Plugin {
constructor(options: HtmlWebpackTagsPlugin.Options);
}
export = HtmlWebpackTagsPlugin;
@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"html-webpack-tags-plugin-tests.ts"
]
}
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }