uni-ticket-system/node_modules/@dcloudio/uni-cli-shared/dist/utils.d.ts
2023-12-05 10:11:10 +08:00

23 lines
1.5 KiB
TypeScript

export { default as hash } from 'hash-sum';
import { ElementNode, RootNode, TemplateChildNode } from '@vue/compiler-core';
import { ParserPlugin } from '@babel/parser';
export declare const version: any;
export declare let isRunningWithYarnPnp: boolean;
export declare const isWindows: boolean;
export declare function normalizePath(id: string): string;
export declare function checkElementNodeTag(node: RootNode | TemplateChildNode | null | undefined, tag: string): node is ElementNode;
export declare function normalizeIdentifier(str: string): string;
export declare function normalizePagePath(pagePath: string, platform: UniApp.PLATFORM): string | undefined;
export declare function removeExt(str: string): string;
export declare function normalizeNodeModules(str: string): string;
export declare function normalizeMiniProgramFilename(filename: string, inputDir?: string): string;
export declare function normalizeParsePlugins(importer: string, babelParserPlugins?: ParserPlugin[]): ParserPlugin[];
export declare function pathToGlob(pathString: string, glob: string, options?: {
windows?: boolean;
escape?: boolean;
}): string;
export declare function resolveSourceMapPath(outputDir?: string, platform?: UniApp.PLATFORM): string;
export declare function installDepTips(type: 'dependencies' | 'devDependencies', module: string, version?: string): string;
export declare function isAppVue(filename: string): boolean;
export declare function resolveAppVue(inputDir: string): string;