UNPKG

ts-comment-remover

Version:

TypeScript file compression tool that removes comments and unnecessary whitespace using AST

13 lines 1.16 kB
import type { FileStats, FileFilter, IOEffect } from './types.js'; export declare const directoryExists: (path: string) => IOEffect<boolean>; export declare const createFileFilter: (includePatterns: readonly string[], excludePatterns: readonly string[]) => FileFilter; export declare const getTypeScriptFiles: (dir: string, includePatterns?: readonly string[], excludePatterns?: readonly string[]) => IOEffect<readonly string[]>; export declare const calculateStats: (originalSize: number, compressedSize: number) => FileStats; export declare const copyToClipboard: (text: string) => IOEffect<void>; export declare const formatFileSize: (bytes: number) => string; export declare const getRelativePath: (filePath: string, baseDir: string) => string; export declare const concat: <T>(...arrays: readonly (readonly T[])[]) => readonly T[]; export declare const merge: <T extends object>(...objects: readonly T[]) => T; export declare const pipe: <A, B, C>(f: (a: A) => B, g: (b: B) => C) => ((a: A) => C); export declare const pipeAsync: <A, B, C>(f: (a: A) => Promise<B>, g: (b: B) => Promise<C>) => ((a: A) => Promise<C>); //# sourceMappingURL=utils.d.ts.map