restrict-imports-loader
Version:
A Webpack loader to restrict imports in ES and TypeScript
8 lines (7 loc) • 476 B
TypeScript
import * as webpack from "webpack";
import * as core from "./core";
export { RestrictedImportDetails, checkAsync } from "./core";
export { LoaderDecider, LoaderOptions, Severity } from "./loader";
export { climbingUpwardsMoreThan, everythingInPackage, everythingInside, everythingOutside, matchedBy, } from "./deciders";
export default function (this: webpack.loader.LoaderContext, source: string): void;
export declare type AsyncDecider = RegExp | core.AsyncDeciderFunction;