Socket
Socket
Sign inDemoInstall

@types/less

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/less - npm Package Compare versions

Comparing version 0.0.34 to 3.0.0

60

less/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for LESS
// Type definitions for LESS 3.x
// Project: http://lesscss.org/

@@ -6,12 +6,23 @@ // Definitions by: Tom Hasner <https://github.com/thasner>

// Daniel Waxweiler <https://github.com/dwaxweiler>
// Richard Lea <https://github.com/chigix>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace Less {
// https://github.com/less/less.js/blob/master/lib/less/import-manager.js#L10
interface RootFileInfo {
/** whether to adjust URL's to be relative */
rewriteUrls?: boolean;
/** full resolved filename of current file */
filename: string;
relativeUrls: boolean;
/** path to append to normal URLs for this node */
rootpath: string;
/** path to the current file, absolute */
currentDirectory: string;
/** absolute path to the entry file */
entryPath: string;
/** filename of the base file */
rootFilename: string;
/** whether the file should not be output and only output parts that are referenced */
reference: boolean;
}

@@ -63,7 +74,50 @@

/**
* Reference to:
* * https://github.com/less/less.js/blob/master/bin/lessc
* * http://lesscss.org/usage/#less-options
*
* @interface Options
*/
interface Options {
sourceMap?: SourceMapOption;
/** Filename of the main file to be passed to less.render() */
filename?: string;
/** The locations for less looking for files in @import rules */
paths?: string[];
/** True, if run the less parser and just reports errors without any output. */
lint?: boolean;
/** Pre-load global Less.js plugins */
plugins?: Plugin[];
rootFileInfo?: RootFileInfo;
/** @deprecated If true, compress using less built-in compression. */
compress?: boolean;
strictImports?: boolean;
/** If true, allow imports from insecure https hosts. */
insecure?: boolean;
depends?: boolean;
maxLineLen?: number;
/** @deprecated If false, No color in compiling. */
color?: boolean;
/** @deprecated False by default. */
ieCompat?: boolean;
/** @deprecated If true, enable evaluation of JavaScript inline in `.less` files. */
javascriptEnabled?: boolean;
/** Whether output file information and line numbers in compiled CSS code. */
dumpLineNumbers?: "comment" | string;
/** Add a path to every generated import and url in output css files. */
rootpath?: string;
/** Math mode options for avoiding symbol conficts on math expressions. */
math?: 'always' | 'strict' | 'parens-division' | 'parens' | 'strict-legacy' | number;
/** If true, stops any warnings from being shown. */
silent?: boolean;
/** Without this option, Less attempts to guess at the output unit when it does maths. */
strictUnits?: boolean;
/** Defines a variable that can be referenced by the file. */
globalVars?: {
[key: string] : string,
};
/** Puts Var declaration at the end of base file. */
modifyVars?: {
[key: string] : string,
};
}

@@ -114,3 +168,3 @@

version: number[];
watch(): void;

@@ -117,0 +171,0 @@ }

10

less/package.json
{
"name": "@types/less",
"version": "0.0.34",
"version": "3.0.0",
"description": "TypeScript definitions for LESS",

@@ -21,5 +21,11 @@ "license": "MIT",

"githubUsername": "dwaxweiler"
},
{
"name": "Richard Lea",
"url": "https://github.com/chigix",
"githubUsername": "chigix"
}
],
"main": "",
"types": "",
"repository": {

@@ -31,4 +37,4 @@ "type": "git",

"dependencies": {},
"typesPublisherContentHash": "b8cdb5334edb5bd17c694dea71c2fdcf7641e9f6b88034071ba135b340ccd0b1",
"typesPublisherContentHash": "024f4a012c83181602f2d6839cbe1815464ee2c336f04f6973a56ea651356d0f",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 30 Jul 2018 23:12:12 GMT
* Last updated: Tue, 16 Oct 2018 15:59:03 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: Less, less

# Credits
These definitions were written by Tom Hasner <https://github.com/thasner>, Pranay Prakash <https://github.com/pranaygp>, Daniel Waxweiler <https://github.com/dwaxweiler>.
These definitions were written by Tom Hasner <https://github.com/thasner>, Pranay Prakash <https://github.com/pranaygp>, Daniel Waxweiler <https://github.com/dwaxweiler>, Richard Lea <https://github.com/chigix>.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc