@cedx/php-minifier
Version:
Minify PHP source code by removing comments and whitespace.
17 lines • 489 B
TypeScript
/**
* Removes comments and whitespace from a PHP script.
*/
export interface ITransformer extends AsyncDisposable {
/**
* Closes this transformer.
* @returns Resolves when the transformer has been closed.
*/
close: () => Promise<void>;
/**
* Processes a PHP script.
* @param file The path to the PHP script.
* @returns The transformed script.
*/
transform: (file: string) => Promise<string>;
}
//# sourceMappingURL=ITransformer.d.ts.map