EroticDungeonGame/node_modules/conventional-commits-parser/dist/utils.d.ts
3944Realms 8c4ce2709c fix(兼容emotescraft和rideeverything): 修改骑乘逻辑和tick取消EmtoesCraft表情
使用Mixin中检测绕过骑乘取消和开始骑乘逻辑,避免原版的unRide方法导致非预期的退出设备;在每tick检测,如果在设备上则停止表情动画
2026-02-20 14:45:57 +08:00

41 lines
1.5 KiB
TypeScript

/**
* Remove leading and trailing newlines.
* @param input
* @returns String without leading and trailing newlines.
*/
export declare function trimNewLines(input: string): string;
/**
* Append a newline to a string.
* @param src
* @param line
* @returns String with appended newline.
*/
export declare function appendLine(src: string | null, line: string | undefined): string;
/**
* Creates a function that filters out comments lines.
* @param char
* @returns Comment filter function.
*/
export declare function getCommentFilter(char: string | undefined): (line: string) => boolean;
/**
* Select lines before the scissor.
* @param lines
* @param commentChar
* @returns Lines before the scissor.
*/
export declare function truncateToScissor(lines: string[], commentChar: string): string[];
/**
* Filter out GPG sign lines.
* @param line
* @returns True if the line is not a GPG sign line.
*/
export declare function gpgFilter(line: string): boolean;
/**
* Assign matched correspondence to the target object.
* @param target - The target object to assign values to.
* @param matches - The RegExp match array containing the matched groups.
* @param correspondence - An array of keys that correspond to the matched groups.
* @returns The target object with assigned values.
*/
export declare function assignMatchedCorrespondence(target: Record<string, string | null>, matches: RegExpMatchArray, correspondence: string[]): Record<string, string | null>;
//# sourceMappingURL=utils.d.ts.map