mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
[react-loadable] export everything in webpack.d.ts
This commit is contained in:
Vendored
+14
-23
@@ -1,31 +1,22 @@
|
||||
import webpack = require("webpack");
|
||||
import webpack = require('webpack');
|
||||
|
||||
declare namespace LoadableExport {
|
||||
interface Options {
|
||||
filename: string;
|
||||
}
|
||||
|
||||
class ReactLoadablePlugin extends webpack.Plugin {
|
||||
constructor(opts?: Options);
|
||||
}
|
||||
|
||||
interface Bundle {
|
||||
export interface Bundle {
|
||||
id: number;
|
||||
name: string;
|
||||
file: string;
|
||||
publicPath: string;
|
||||
}
|
||||
|
||||
interface Manifest {
|
||||
[moduleId: string]: Bundle[];
|
||||
}
|
||||
|
||||
function getBundles(manifest: Manifest, moduleIds: string[]): Bundle[];
|
||||
}
|
||||
|
||||
declare const exports: {
|
||||
getBundles: typeof LoadableExport.getBundles;
|
||||
ReactLoadablePlugin: typeof LoadableExport.ReactLoadablePlugin;
|
||||
};
|
||||
export interface Manifest {
|
||||
[moduleId: string]: Bundle[];
|
||||
}
|
||||
|
||||
export = exports;
|
||||
export interface ReactLoadablePluginOptions {
|
||||
filename: string;
|
||||
}
|
||||
|
||||
export class ReactLoadablePlugin extends webpack.Plugin {
|
||||
constructor(opts?: ReactLoadablePluginOptions);
|
||||
}
|
||||
|
||||
export function getBundles(manifest: Manifest, moduleIds: string[]): Bundle[];
|
||||
|
||||
Reference in New Issue
Block a user