Socket
Socket
Sign inDemoInstall

@types/node-sass

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node-sass - npm Package Compare versions

Comparing version 4.11.4 to 4.11.5

176

node-sass/index.d.ts

@@ -9,3 +9,9 @@ // Type definitions for node-sass 4.11

export type ImporterReturnType = { file: string } | { file?: string | undefined; contents: string } | Error | null | types.Null | types.Error;
export type ImporterReturnType =
| { file: string }
| { file?: string | undefined; contents: string }
| Error
| null
| types.Null
| types.Error;

@@ -33,3 +39,8 @@ /**

export type AsyncImporter = (this: AsyncContext, url: string, prev: string, done: (data: ImporterReturnType) => void) => void;
export type AsyncImporter = (
this: AsyncContext,
url: string,
prev: string,
done: (data: ImporterReturnType) => void,
) => void;
export type SyncImporter = (this: SyncContext, url: string, prev: string) => ImporterReturnType;

@@ -46,6 +57,32 @@ export type Importer = AsyncImporter | SyncImporter;

export type SyncSassVarArgFn2 = (this: SyncContext, $arg1: types.Value, $arg2: types.Value[]) => types.ReturnValue;
export type SyncSassVarArgFn3 = (this: SyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value[]) => types.ReturnValue;
export type SyncSassVarArgFn4 = (this: SyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value[]) => types.ReturnValue;
export type SyncSassVarArgFn5 = (this: SyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value, $arg5: types.Value[]) => types.ReturnValue;
export type SyncSassVarArgFn6 = (this: SyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value, $arg5: types.Value, $arg6: types.Value[]) => types.ReturnValue;
export type SyncSassVarArgFn3 = (
this: SyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value[],
) => types.ReturnValue;
export type SyncSassVarArgFn4 = (
this: SyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value[],
) => types.ReturnValue;
export type SyncSassVarArgFn5 = (
this: SyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value,
$arg5: types.Value[],
) => types.ReturnValue;
export type SyncSassVarArgFn6 = (
this: SyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value,
$arg5: types.Value,
$arg6: types.Value[],
) => types.ReturnValue;

@@ -57,20 +94,109 @@ export type SassFunctionCallback = ($result: types.ReturnValue) => void;

export type AsyncSassFn1 = (this: AsyncContext, $arg1: types.Value, cb: SassFunctionCallback) => void;
export type AsyncSassFn2 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, cb: SassFunctionCallback) => void;
export type AsyncSassFn3 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, cb: SassFunctionCallback) => void;
export type AsyncSassFn4 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value, cb: SassFunctionCallback) => void;
export type AsyncSassFn5 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value, $arg5: types.Value, cb: SassFunctionCallback) => void;
export type AsyncSassFn6 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value, $arg5: types.Value, $arg6: types.Value, cb: SassFunctionCallback) => void;
export type AsyncSassFn2 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
cb: SassFunctionCallback,
) => void;
export type AsyncSassFn3 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
cb: SassFunctionCallback,
) => void;
export type AsyncSassFn4 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value,
cb: SassFunctionCallback,
) => void;
export type AsyncSassFn5 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value,
$arg5: types.Value,
cb: SassFunctionCallback,
) => void;
export type AsyncSassFn6 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value,
$arg5: types.Value,
$arg6: types.Value,
cb: SassFunctionCallback,
) => void;
// *** Async Sass Functions receiving variable # of arguments ***
export type AsyncSassVarArgFn1 = (this: AsyncContext, $arg1: types.Value[], cb: SassFunctionCallback) => void;
export type AsyncSassVarArgFn2 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value[], cb: SassFunctionCallback) => void;
export type AsyncSassVarArgFn3 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value[], cb: SassFunctionCallback) => void;
export type AsyncSassVarArgFn4 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value[], cb: SassFunctionCallback) => void;
export type AsyncSassVarArgFn5 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value, $arg5: types.Value[], cb: SassFunctionCallback) => void;
export type AsyncSassVarArgFn6 = (this: AsyncContext, $arg1: types.Value, $arg2: types.Value, $arg3: types.Value, $arg4: types.Value, $arg5: types.Value, $arg6: types.Value[], cb: SassFunctionCallback) => void;
export type AsyncSassVarArgFn2 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value[],
cb: SassFunctionCallback,
) => void;
export type AsyncSassVarArgFn3 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value[],
cb: SassFunctionCallback,
) => void;
export type AsyncSassVarArgFn4 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value[],
cb: SassFunctionCallback,
) => void;
export type AsyncSassVarArgFn5 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value,
$arg5: types.Value[],
cb: SassFunctionCallback,
) => void;
export type AsyncSassVarArgFn6 = (
this: AsyncContext,
$arg1: types.Value,
$arg2: types.Value,
$arg3: types.Value,
$arg4: types.Value,
$arg5: types.Value,
$arg6: types.Value[],
cb: SassFunctionCallback,
) => void;
export type SyncSassFunction = SyncSassFn | SyncSassVarArgFn1 | SyncSassVarArgFn2 | SyncSassVarArgFn3 | SyncSassVarArgFn4 | SyncSassVarArgFn5 | SyncSassVarArgFn6;
export type SyncSassFunction =
| SyncSassFn
| SyncSassVarArgFn1
| SyncSassVarArgFn2
| SyncSassVarArgFn3
| SyncSassVarArgFn4
| SyncSassVarArgFn5
| SyncSassVarArgFn6;
export type AsyncSassFunction = AsyncSassFn0 | AsyncSassFn1 | AsyncSassFn2 | AsyncSassFn3 | AsyncSassFn4 | AsyncSassFn5 | AsyncSassFn6
| AsyncSassVarArgFn1 | AsyncSassVarArgFn2 | AsyncSassVarArgFn3 | AsyncSassVarArgFn4 | AsyncSassVarArgFn5 | AsyncSassVarArgFn6;
export type AsyncSassFunction =
| AsyncSassFn0
| AsyncSassFn1
| AsyncSassFn2
| AsyncSassFn3
| AsyncSassFn4
| AsyncSassFn5
| AsyncSassFn6
| AsyncSassVarArgFn1
| AsyncSassVarArgFn2
| AsyncSassVarArgFn3
| AsyncSassVarArgFn4
| AsyncSassVarArgFn5
| AsyncSassVarArgFn6;

@@ -205,3 +331,3 @@ export type SassFunction = SyncSassFunction | AsyncSassFunction;

*/
new (value: string): String;
new(value: string): String;
/**

@@ -270,3 +396,3 @@ * Constructs a new Sass string. Can also be used with the `new` keyword.

*/
new (r: number, g: number, b: number, a?: number): Color;
new(r: number, g: number, b: number, a?: number): Color;

@@ -293,3 +419,3 @@ /**

*/
new (hexN: number): Color;
new(hexN: number): Color;

@@ -359,3 +485,3 @@ /**

interface ListConstructor {
new (length: number, commaSeparator?: boolean): List;
new(length: number, commaSeparator?: boolean): List;
(length: number, commaSeparator?: boolean): List;

@@ -372,3 +498,3 @@ }

interface MapConstructor {
new (length: number): Map;
new(length: number): Map;
(length: number): Map;

@@ -396,3 +522,3 @@ }

*/
new (message: string): Error;
new(message: string): Error;
/**

@@ -399,0 +525,0 @@ * An error return value for async functions.

6

node-sass/package.json
{
"name": "@types/node-sass",
"version": "4.11.4",
"version": "4.11.5",
"description": "TypeScript definitions for node-sass",

@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-sass",

},
"typesPublisherContentHash": "080ddca6dc1c1621d834cbf59b109beaec0d81b02c1968fa52bb7ba59ae2d14c",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "c7a31df0f023a6fc6932590ece4984abd95833bbf5d0cc1e0552d5fbf17a5c7b",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Fri, 01 Sep 2023 20:33:30 GMT
* Last updated: Sat, 23 Sep 2023 20:38:33 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

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