4.0.6 • Published 6 months ago

@types/postcss-less v4.0.6

Weekly downloads
20,076
License
MIT
Repository
github
Last release
6 months ago

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.

4.0.5

7 months ago

4.0.4

7 months ago

4.0.6

6 months ago

4.0.3

7 months ago

4.0.2

2 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.1

4 years ago

3.1.0

4 years ago