0.0.11 • Published 6 months ago

@types/uglifycss v0.0.11

Weekly downloads
1,062
License
MIT
Repository
github
Last release
6 months ago

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: Fri, 02 Jul 2021 18:04:46 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by gevik Babakhani.

0.0.10

6 months ago

0.0.11

6 months ago

0.0.9

7 months ago

0.0.8

8 months ago

0.0.7

3 years ago

0.0.6

4 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago