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

4.1.3 • Public • Published

Installation

npm install --save @types/postcss-clamp

Summary

This package contains type definitions for postcss-clamp (https://github.com/polemius/postcss-clamp).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-clamp.

index.d.ts

import { PluginCreator } from "postcss";

declare namespace postcssClamp {
    interface Options {
        /**
         * Whether values with the same unit should be precalculated.
         * @example
         * ```css
         * .foo {
         *   width: clamp(10em, 4px, 10px);
         * }
         * ```
         *
         * Becomes
         *
         * ```css
         * .foo {
         *     width: max(10em, 14px);
         * }
         * ```
         * @see {@link <https://github.com/polemius/postcss-clamp#precalculate>}
         */
        precalculate?: boolean | undefined;
        /** @default false */
        preserve?: boolean | undefined;
    }
}

declare var postcssClamp: PluginCreator<postcssClamp.Options>;

export = postcssClamp;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: postcss

Credits

These definitions were written by Adam Thompson-Sharpe.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/postcss-clamp

Weekly Downloads

5,618

Version

4.1.3

License

MIT

Unpacked Size

4.19 kB

Total Files

5

Last publish

Collaborators

  • types