Installation
npm install --save @types/postcss-nested-ancestors
Summary
This package contains type definitions for postcss-nested-ancestors (https://github.com/toomuchdesign/postcss-nested-ancestors).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-nested-ancestors.
index.d.ts
import { PluginCreator } from "postcss";
declare namespace nestedAncestors {
interface Options {
/**
* Ancestor selector pattern (utility option to automatically set both `levelSymbol` and `parentSymbol`)
* @default '^&'
*/
placeholder?: string | undefined;
/**
* Symbol to move up a level of nesting
* @default '^'
*/
levelSymbol?: string | undefined;
/**
* Symbol to target parent
* @default '&'
*/
parentSymbol?: string | undefined;
/**
* @experimental
* Whether to look through CSS for nested ancestor symbols and replace them with the relevant tag
* @see {@link <https://github.com/toomuchdesign/postcss-nested-ancestors#replacedeclarations-experimental>}
* @default false
*/
replaceDeclarations?: boolean | undefined;
}
}
declare var nestedAncestors: PluginCreator<nestedAncestors.Options>;
export = nestedAncestors;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: postcss
Credits
These definitions were written by Adam Thompson-Sharpe.