PHP Minifier
    Preparing search index...

    Interface ITransformer

    Removes comments and whitespace from a PHP script.

    interface ITransformer {
        close: () => Promise<void>;
        transform: (file: string) => Promise<string>;
        "[asyncDispose]"(): PromiseLike<void>;
    }

    Hierarchy

    • AsyncDisposable
      • ITransformer

    Implemented by

    Index

    Properties

    Methods

    Properties

    close: () => Promise<void>

    Closes this transformer.

    Type declaration

      • (): Promise<void>
      • Returns Promise<void>

        Resolves when the transformer has been closed.

    transform: (file: string) => Promise<string>

    Processes a PHP script.

    Type declaration

      • (file: string): Promise<string>
      • Parameters

        • file: string

          The path to the PHP script.

        Returns Promise<string>

        The transformed script.

    Methods

    • Returns PromiseLike<void>