@types/postcss-less
TypeScript definitions for postcss-less
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/postcss-less 
SYNC missed versions from official npm registry.

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: Tue, 10 Oct 2023 18:07:32 GMT
  • Dependencies: @types/postcss
  • Global values: none

Credits

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

Current Tags

  • 4.0.4                                ...           latest (3 years ago)
  • 3.1.1                                ...           ts3.0 (6 years ago)
  • 3.1.1                                ...           ts3.1 (6 years ago)
  • 3.1.1                                ...           ts3.2 (6 years ago)
  • 3.1.1                                ...           ts3.3 (6 years ago)
  • 3.1.1                                ...           ts3.4 (6 years ago)
  • 3.1.1                                ...           ts3.5 (6 years ago)
  • 3.1.1                                ...           ts3.6 (6 years ago)
  • 4.0.1                                ...           ts3.7 (5 years ago)
  • 4.0.2                                ...           ts3.8 (4 years ago)
  • 4.0.2                                ...           ts3.9 (4 years ago)
  • 4.0.2                                ...           ts4.0 (4 years ago)
  • 4.0.2                                ...           ts4.1 (4 years ago)
  • 4.0.2                                ...           ts4.2 (4 years ago)
  • 4.0.2                                ...           ts4.3 (4 years ago)
  • 4.0.2                                ...           ts4.4 (4 years ago)
  • 4.0.4                                ...           ts4.5 (3 years ago)
  • 4.0.4                                ...           ts4.6 (3 years ago)
  • 4.0.4                                ...           ts4.7 (3 years ago)
  • 4.0.4                                ...           ts4.8 (3 years ago)
  • 4.0.4                                ...           ts4.9 (3 years ago)
  • 4.0.4                                ...           ts5.0 (3 years ago)
  • 4.0.4                                ...           ts5.1 (3 years ago)
  • 4.0.4                                ...           ts5.2 (3 years ago)
  • 4.0.4                                ...           ts5.3 (3 years ago)

7 Versions

  • 4.0.4                                ...           3 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |