UNPKG

601 BTypeScriptView Raw
1interface VersionPath {
2 path: string;
3 type: string;
4 version: string;
5}
6interface PackageInfo extends VersionPath {
7 name: string;
8}
9type FnString = () => string | undefined;
10/**
11 * @name detectPackage
12 * @summary Checks that a specific package is only imported once
13 * @description A `@polkadot/*` version detection utility, checking for one occurence of a package in addition to checking for ddependency versions.
14 */
15export declare function detectPackage({ name, path, type, version }: PackageInfo, pathOrFn?: FnString | string | false | null, deps?: PackageInfo[]): void;
16export {};