vite-uni-dev-tool
Version:
vite-uni-dev-tool, debug, uni-app, 一处编写,到处调试
61 lines • 1.56 kB
TypeScript
export declare function findInsertionIndex(lines: string[], condition: (p: string) => boolean): number;
export declare function getContentType(filePath: string): string;
export declare function getLocalIPs(): string[];
export declare function hasImportOnLaunch(str: string): boolean;
export declare function hasImportCurrentInstance(str: string): boolean;
export declare function hasImportConsole(str: string): boolean;
export declare function hasUseConsole(str: string): boolean;
/**
* 解析栈信息
*
* @export
* @param {string} stack
* @return {*}
*/
export declare function parseStock(stack: string): {
info: string;
path: string;
row: number;
col: number;
};
/**
* 在字符串中获取url
*
* @export
* @param {string} text
* @return {*}
*/
export declare function extractUrl(text: string): string;
/**
* 在字符串中获取路径
*
* @export
* @param {string} text
* @return {*}
*/
export declare function extractPath(text: string): string;
/**
* 获取文件内的行内sourcemap
*
* @export
* @param {string} text
* @return {*}
*/
export declare function extractSourceMap(text: string): string;
/**
* 解析url中的参数
*
* @export
* @param {string} queryString
* @return {*}
*/
export declare function parseQueryString(queryString: string): any;
/**
* 获取 template 中的内容
*
* @export
* @param {string} code
* @return {*}
*/
export declare function getTemplateContent(code: string): string;
//# sourceMappingURL=index.d.ts.map