Natural Potato Magnet

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

    4.0.2 • Public • Published

    Installation

    npm install --save @types/postcss-less

    Summary

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

    Details

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

    index.d.ts

    // Type definitions for postcss-less 4.0
    // Project: https://github.com/shellscape/postcss-less
    // Definitions by: Masafumi Koba <https://github.com/ybiquitous>
    //                 Daniel Cassidy <https://github.com/djcsdy>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // Minimum TypeScript Version: 3.7
    
    import * as postcss from 'postcss';
    
    export = postcssLess;
    
    declare const postcssLess: postcss.Syntax & {
        parse: postcss.Parser<postcss.Root>;
        stringify: postcss.Stringifier;
        nodeToString: (node: postcss.Node) => string;
    };
    
    declare namespace postcssLess {
        // @see https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/nodes/import.js
        interface ImportAtRule extends postcss.AtRule {
            import: true;
            filename: string;
            options?: string | undefined;
        }
    
        // @see https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/nodes/variable.js
        interface VariableAtRule extends postcss.AtRule {
            variable: true;
            value: string;
        }
    
        // @see https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/LessParser.js#L147-L151
        interface MixinAtRule extends postcss.AtRule {
            mixin: true;
            important?: true | undefined;
        }
    
        // @see https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/LessParser.js#L57
        interface FunctionAtRule extends postcss.AtRule {
            function: true;
        }
    
        type AtRule = ImportAtRule | VariableAtRule | MixinAtRule | FunctionAtRule;
    
        // @see https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/LessParser.js#L187
        interface ExtendRule extends postcss.Rule {
            extend: true;
        }
    
        type Rule = ExtendRule;
    
        // @see https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/LessParser.js#L187
        interface ExtendDeclaration extends postcss.Declaration {
            extend: true;
        }
    
        type Declaration = ExtendDeclaration;
    
        // @see https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/LessParser.js#L73
        interface InlineComment extends postcss.Comment {
            inline: true;
        }
    
        type Comment = InlineComment;
    }

    Additional Details

    • Last updated: Mon, 10 Jan 2022 21:01:35 GMT
    • Dependencies: @types/postcss
    • Global values: none

    Credits

    These definitions were written by Masafumi Koba, and Daniel Cassidy.

    Keywords

    none

    Install

    npm i @types/postcss-less

    DownloadsWeekly Downloads

    6,180

    Version

    4.0.2

    License

    MIT

    Unpacked Size

    7.11 kB

    Total Files

    4

    Last publish

    Collaborators

    • types