3.0.3 • Published 6 months ago

@types/postcss-nested-ancestors v3.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for postcss-nested-ancestors 3.0
// Project: https://github.com/toomuchdesign/postcss-nested-ancestors
// Definitions by: Adam Thompson-Sharpe <https://github.com/MysteryBlokHed>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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, 31 May 2022 22:01:32 GMT
  • Dependencies: @types/postcss
  • Global values: none

Credits

These definitions were written by Adam Thompson-Sharpe.

3.0.3

6 months ago

3.0.2

7 months ago

3.0.1

8 months ago

3.0.0

2 years ago