UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

16 lines (15 loc) 641 B
/** * Electron utility functions for path validation and manipulation. * * This module provides common utility functions used across the Electron main process * for validating and manipulating file paths. */ export declare class Utilities { static validateFolderPath(path: string): void; static countChar(source: string, find: string): number; static ensureStartsWithSlash(pathSegment: string): string; static ensureEndsWithSlash(pathSegment: string): string; static ensureStartsWithBackSlash(pathSegment: string): string; static ensureEndsWithBackSlash(pathSegment: string): string; } export default Utilities;