Installation
npm install --save @types/wordpress__custom-templated-path-webpack-plugin
Summary
This package contains type definitions for @wordpress/custom-templated-path-webpack-plugin (https://github.com/WordPress/gutenberg/tree/master/packages/custom-templated-path-webpack-plugin/README.md).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__custom-templated-path-webpack-plugin.
index.d.ts
import { compilation, Plugin } from "webpack";
declare class CustomTemplatedPathPlugin extends Plugin {
constructor(
template: Record<
string,
(
path: string,
data: {
basename?: string | undefined;
chunk?: compilation.Chunk | undefined;
filename?: string | undefined;
hash?: string | undefined;
query?: any;
},
) => string
>,
);
}
export = CustomTemplatedPathPlugin;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/webpack
Credits
These definitions were written by Derek Sifford.