Socket
Socket
Sign inDemoInstall

@types/css-tree

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/css-tree - npm Package Compare versions

Comparing version 1.0.7 to 2.0.0

35

css-tree/index.d.ts

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

// Type definitions for css-tree 1.0
// Type definitions for css-tree 2.0
// Project: https://github.com/csstree/csstree

@@ -30,5 +30,11 @@ // Definitions by: Erik Källén <https://github.com/erik-kallen>

export type FilterFn<TData, TResult extends TData, TContext = List<TData>> = (this: TContext, item: TData, node: ListItem<TData>, list: List<TData>) => item is TResult;
export type ReduceFn<TData, TValue, TContext = List<TData>> = (this: TContext, accum: TValue, data: TData) => TValue;
export class List<TData> {
constructor();
get size(): number;
get isEmpty(): boolean;
get first(): TData|null;
get last(): TData|null;
[Symbol.iterator](): IterableIterator<TData>;
fromArray(array: TData[]): List<TData>;

@@ -38,12 +44,4 @@ createItem(data: TData): ListItem<TData>;

toJSON(): TData[];
getSize(): number;
isEmpty(): boolean;
first(): TData | null;
last(): TData | null;
each<TContext>(fn: IteratorFn<TData, void, TContext>, context: TContext): void;
each(fn: IteratorFn<TData, void>): void;
forEach<TContext>(fn: IteratorFn<TData, void, TContext>, context: TContext): void;
forEach(fn: IteratorFn<TData, void>): void;
eachRight<TContext>(fn: IteratorFn<TData, void, TContext>, context: TContext): void;
eachRight(fn: IteratorFn<TData, void>): void;
forEachRight<TContext>(fn: IteratorFn<TData, void, TContext>, context: TContext): void;

@@ -55,2 +53,6 @@ forEachRight(fn: IteratorFn<TData, void>): void;

prevUntil(start: ListItem<TData>, fn: IteratorFn<TData, boolean>): void;
reduce<TValue, TContext>(fn: ReduceFn<TData, TValue, TContext>, initialValue: TValue, context: TContext): TValue;
reduce<TValue>(fn: ReduceFn<TData, TValue>, initialValue: TValue): TValue;
reduceRight<TValue, TContext>(fn: ReduceFn<TData, TValue, TContext>, initialValue: TValue, context: TContext): TValue;
reduceRight<TValue>(fn: ReduceFn<TData, TValue>, initialValue: TValue): TValue;
some<TContext>(fn: IteratorFn<TData, boolean, TContext>, context: TContext): boolean;

@@ -819,1 +821,16 @@ some(fn: IteratorFn<TData, boolean>): boolean;

export const definitionSyntax: DefinitionSyntax;
export const ident: {
decode(input: string): string;
encode(input: string): string;
};
export const string: {
encode(input: string, apostrophe?: boolean): string;
decode(input: string): string;
};
export const url: {
decode(input: string): string;
encode(input: string): string;
};
{
"name": "@types/css-tree",
"version": "1.0.7",
"version": "2.0.0",
"description": "TypeScript definitions for css-tree",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-tree",

"dependencies": {},
"typesPublisherContentHash": "37ba855339acd18bdd8c7445b6fc3d0a552752dada8e8938b51c6b140dad1237",
"typeScriptVersion": "3.7"
"typesPublisherContentHash": "3f75018e6321f3854451eba2f3726a779bf9896d9604713d62fdf4697a1dc334",
"typeScriptVersion": "4.1"
}

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

### Additional Details
* Last updated: Mon, 08 Nov 2021 10:31:32 GMT
* Last updated: Sat, 15 Oct 2022 21:33:15 GMT
* Dependencies: none

@@ -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