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

3.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/postcss-nested-ancestors

Weekly Downloads

151

Version

3.0.3

License

MIT

Unpacked Size

4.83 kB

Total Files

5

Last publish

Collaborators

  • types