UNPKG

telefunc

Version:

Remote functions. Instead of API.

20 lines (19 loc) 817 B
export { isImportPathNpmPackage }; export { isImportPathNpmPackageOrPathAlias }; export { assertIsImportPathNpmPackage }; export { isPathAliasRecommended }; export { getNpmPackageName }; export { parseNpmPackage }; export { isDistinguishable }; declare function isImportPathNpmPackage(str: string, { cannotBePathAlias }: { cannotBePathAlias: true; }): boolean; declare function isImportPathNpmPackageOrPathAlias(str: string): boolean; declare function assertIsImportPathNpmPackage(str: string): void; declare function getNpmPackageName(str: string): null | string; declare function isPathAliasRecommended(alias: string): boolean; declare function isDistinguishable(alias: string): boolean; declare function parseNpmPackage(str: string | undefined): null | { pkgName: string; importPath: null | string; };