Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/webidl2

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/webidl2 - npm Package Compare versions

Comparing version 10.2.3 to 23.8.0

88

webidl2/index.d.ts

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

// Type definitions for webidl2 10.2
// Type definitions for webidl2 23.8
// Project: https://github.com/w3c/webidl2.js#readme

@@ -10,5 +10,5 @@ // Definitions by: Kagama Sascha Rosylight <https://github.com/saschanaz>

export type IDLRootType = InterfaceType | InterfaceMixinType | NamespaceType | CallbackType | DictionaryType | EnumType | TypedefType | ImplementsType | IncludesType;
export type IDLRootType = InterfaceType | InterfaceMixinType | NamespaceType | CallbackType | DictionaryType | EnumType | TypedefType | IncludesType;
export type IDLInterfaceMemberType = OperationMemberType | AttributeMemberType | ConstantMemberType | DeclarationMemberType;
export type IDLInterfaceMemberType = OperationMemberType | ConstructorMemberType | AttributeMemberType | ConstantMemberType | DeclarationMemberType;

@@ -18,4 +18,6 @@ export type IDLNamespaceMemberType = OperationMemberType | AttributeMemberType;

export interface ParseOptions {
/** Boolean indicating whether the parser should accept typedefs as valid members of interfaces. */
allowNestedTypedefs?: boolean;
/** Boolean indicating whether the result should include EOF node or not. */
concrete?: boolean;
/** The source name, typically a filename. Errors and validation objects can indicate their origin if you pass a value. */
sourceName?: string;
}

@@ -54,3 +56,3 @@

*/
idlType: string | IDLTypeDescription | IDLTypeDescription[];
idlType: string | IDLTypeDescription[];
}

@@ -69,3 +71,3 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -82,3 +84,3 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -95,3 +97,3 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -105,6 +107,6 @@

idlType: IDLTypeDescription;
/** A list of arguments, as in function parameters. */
/** A list of arguments, as in function paramters. */
arguments: Argument[];
/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -123,3 +125,3 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -141,3 +143,3 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
/** A default value, absent if there is none. */

@@ -154,3 +156,3 @@ default: ValueDescription | null;

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -165,15 +167,5 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}
export interface ImplementsType {
type: "implements";
/** The interface that implements another. */
target: string;
/** The interface that is being implemented by the target. */
implements: string;
/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
}
export interface IncludesType {

@@ -186,17 +178,17 @@ type: "includes";

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}
export interface ConstructorMemberType {
type: "constructor";
/** An array of arguments for the constructor operation. */
arguments: Argument[];
/** A list of extended attributes. */
extAttrs: ExtendedAttribute[];
}
export interface OperationMemberType {
type: "operation";
/** True if a getter operation. */
getter: boolean;
/** True if a setter operation. */
setter: boolean;
/** True if a deleter operation. */
deleter: boolean;
/** True if a static operation. */
static: boolean;
/** True if a stringifier operation. */
stringifier: boolean;
/** Special modifier if exists */
special: "getter" | "setter" | "deleter" | "static" | "stringifier";
/** An IDL Type of what the operation returns. If a stringifier, may be absent. */

@@ -209,3 +201,3 @@ idlType: IDLTypeDescription | null;

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -217,6 +209,4 @@

name: string;
/** True if it's a static attribute. */
static: boolean;
/** True if it's a stringifier attribute. */
stringifier: boolean;
/** Special modifier if exists */
special: "static" | "stringifier";
/** True if it's an inherit attribute. */

@@ -229,3 +219,3 @@ inherit: boolean;

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -244,3 +234,3 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}

@@ -259,6 +249,6 @@

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}
export interface ExtendedAttributes {
export interface ExtendedAttribute {
/** The extended attribute's name. */

@@ -284,7 +274,7 @@ name: string;

type: "identifier-list";
value: string[];
value: ExtendedAttributeRightHandSideIdentifier[];
}
export interface ValueDescription {
type: "string" | "number" | "boolean" | "null" | "Infinity" | "NaN" | "sequence";
type: "string" | "number" | "boolean" | "null" | "Infinity" | "NaN" | "sequence" | "dictionary";
value: string | any[] | null;

@@ -295,3 +285,3 @@ negative: boolean | null;

export interface DeclarationMemberType {
type: "iterable" | "legacyiterable" | "setlike" | "maplike";
type: "iterable" | "setlike" | "maplike";
/** An array with one or more IDL Types representing the declared type arguments. */

@@ -302,3 +292,3 @@ idlType: IDLTypeDescription[];

/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];
extAttrs: ExtendedAttribute[];
}
{
"name": "@types/webidl2",
"version": "10.2.3",
"version": "23.8.0",
"description": "TypeScript definitions for webidl2",

@@ -14,11 +14,12 @@ "license": "MIT",

"main": "",
"types": "",
"types": "index",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/webidl2"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "7fe48d8b98d53f0c823b0e002af54a13d9faea44a2f64595d137305feeca1e3d",
"typesPublisherContentHash": "fbade5bbd72a919a0ba0bd25e81c33da51f504b070cc64516369c9dca72fa848",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Thu, 01 Nov 2018 17:41:05 GMT
* Last updated: Wed, 11 Sep 2019 05:46:32 GMT
* Dependencies: none

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

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