@types/uglifycss
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Installation

npm install --save @types/uglifycss

Summary

This package contains type definitions for UglifyCSS (https://github.com/fmarcia/UglifyCSS).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uglifycss.

index.d.ts

// Type definitions for UglifyCSS v0.0.20
// Project: https://github.com/fmarcia/UglifyCSS
// Definitions by: gevik Babakhani <https://github.com/blendsdk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare module "uglifycss" {
    namespace UglifyCSS {
        interface UglifyCSSOptions {
            /**
             * Adds a newline (approx.) every n characters; 0 means no newline and is the default value
             */
            maxLineLen?: number | undefined;

            /**
             * eEpands variables; by default, @variables blocks are preserved and var(x)s are not expanded
             */
            expandVars?: boolean | undefined;

            /**
             * Removes newlines within preserved comments; by default, newlines are preserved
             */
            uglyComments?: boolean | undefined;

            /**
             * Preserves newlines within and around preserved comments
             */
            cuteComments?: boolean | undefined;
        }

        /**
         * Uglify a string
         */
        function processString(content: string, options?: UglifyCSSOptions): string;

        /**
         * Uglify one or more files
         */
        function processFiles(filenames: Array<string>, options?: UglifyCSSOptions): string;
    }

    export = UglifyCSS;
}

Additional Details

  • Last updated: Wed, 30 Aug 2023 19:35:28 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by gevik Babakhani.

Keywords

none

Install

DownloadsWeekly Downloads

1,352

Version

0.0.8

License

MIT

Unpacked Size

5.25 kB

Total Files

5

Last publish

Collaborators

  • types