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.