UNPKG

702 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;
10export declare const POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG = "POLKADOTJS_DISABLE_ESM_CJS_WARNING";
11/**
12 * @name detectPackage
13 * @summary Checks that a specific package is only imported once
14 * @description A `@polkadot/*` version detection utility, checking for one occurrence of a package in addition to checking for dependency versions.
15 */
16export declare function detectPackage({ name, path, type, version }: PackageInfo, pathOrFn?: FnString | string | false | null, deps?: PackageInfo[]): void;
17export {};