Urara-Blog/node_modules/.pnpm-store/v3/files/8d/a1b30d371e8163f11cbfeec9c10b2106eef5ff862204902c914020e681564934d091d97a6e00405877cbeb4d4d1e6e44627ba0a9692e1d580a1b153eae9041
2022-08-14 01:14:53 +08:00

17 lines
983 B
Text

export declare function escapeHtml(text: string): string;
export declare function strrep(text: string, count: number): string;
export declare function textToAnchorName(text: string): string;
export declare function fileNameToUrlName(s: string): string;
export declare function parsePrimitive(value: string, type: string): any;
export declare function cleanMarkdownEscaped(code: string): string;
export declare function typesToExtension(types: string): string;
export declare function getIdentifierTextSpans(ts: typeof import("typescript"), sourceFile: import("typescript").SourceFile): {
span: import("typescript").TextSpan;
text: string;
}[];
export declare function stringAroundIndex(string: string, index: number): string;
/** Came from https://ourcodeworld.com/articles/read/223/how-to-retrieve-the-closest-word-in-a-string-with-a-given-index-in-javascript */
export declare function getClosestWord(str: string, pos: number): {
word: string;
startPos: number;
};