@types/webidl2js
Advanced tools
+70
-70
@@ -10,86 +10,86 @@ // Type definitions for webidl2js 16.0 | ||
| declare class Transformer { | ||
| constructor(opts?: Transformer.Options); | ||
| constructor(opts?: Transformer.Options); | ||
| /** | ||
| * @param idl The WebIDL file or directory of WebIDL files | ||
| * to generate wrappers for. | ||
| * @param impl The directory containing implementation files | ||
| * for the provided WebIDL file(s). | ||
| */ | ||
| addSource(idl: string, impl: string): this; | ||
| /** | ||
| * @param idl The WebIDL file or directory of WebIDL files | ||
| * to generate wrappers for. | ||
| * @param impl The directory containing implementation files | ||
| * for the provided WebIDL file(s). | ||
| */ | ||
| addSource(idl: string, impl: string): this; | ||
| /** | ||
| * Generates WebIDL2JS wrapper classes for the supplied WebIDL file(s) | ||
| * in the supplied output directory. | ||
| * | ||
| * @param outputDir The directory where WebIDL2JS wrappers will be generated in. | ||
| * @return A promise that will be resolved once all files have been written, | ||
| * or rejected if an error was encountered. | ||
| */ | ||
| generate(outputDir: string): Promise<void>; | ||
| /** | ||
| * Generates WebIDL2JS wrapper classes for the supplied WebIDL file(s) | ||
| * in the supplied output directory. | ||
| * | ||
| * @param outputDir The directory where WebIDL2JS wrappers will be generated in. | ||
| * @return A promise that will be resolved once all files have been written, | ||
| * or rejected if an error was encountered. | ||
| */ | ||
| generate(outputDir: string): Promise<void>; | ||
| } | ||
| declare namespace Transformer { | ||
| interface ProcessorContext { | ||
| /** | ||
| * @param specifier The import specifier. | ||
| * @param property The imported property, when undefined or empty, | ||
| * then the whole module namespace will be imported. | ||
| * @return The identifier referring to this imported value. | ||
| */ | ||
| addImport(specifier: string, property?: string): string; | ||
| } | ||
| interface ProcessorContext { | ||
| /** | ||
| * @param specifier The import specifier. | ||
| * @param property The imported property, when undefined or empty, | ||
| * then the whole module namespace will be imported. | ||
| * @return The identifier referring to this imported value. | ||
| */ | ||
| addImport(specifier: string, property?: string): string; | ||
| } | ||
| type CodeProcessor = (this: ProcessorContext, code: string) => string; | ||
| type CodeProcessor = (this: ProcessorContext, code: string) => string; | ||
| type AttributeProcessor = ( | ||
| this: ProcessorContext, | ||
| idl: AttributeMemberType, | ||
| implName: string, | ||
| ) => { | ||
| get: string; | ||
| set: string; | ||
| }; | ||
| type AttributeProcessor = ( | ||
| this: ProcessorContext, | ||
| idl: AttributeMemberType, | ||
| implName: string, | ||
| ) => { | ||
| get: string; | ||
| set: string; | ||
| }; | ||
| interface Options { | ||
| /** | ||
| * The optional suffix present on implementation files. | ||
| * | ||
| * @default "" | ||
| */ | ||
| implSuffix?: string; | ||
| interface Options { | ||
| /** | ||
| * The optional suffix present on implementation files. | ||
| * | ||
| * @default "" | ||
| */ | ||
| implSuffix?: string; | ||
| /** | ||
| * The function used to modify attributes and operations | ||
| * with the `[CEReactions]` extended attribute. | ||
| * | ||
| * The default value is the identity function. | ||
| */ | ||
| processCEReactions?: CodeProcessor; | ||
| /** | ||
| * The function used to modify attributes and operations | ||
| * with the `[CEReactions]` extended attribute. | ||
| * | ||
| * The default value is the identity function. | ||
| */ | ||
| processCEReactions?: CodeProcessor; | ||
| /** | ||
| * The function used to modify attributes and operations | ||
| * with the `[HTMLConstructor]` extended attribute. | ||
| * | ||
| * The default value is the identity function. | ||
| */ | ||
| processHTMLConstructor?: CodeProcessor; | ||
| /** | ||
| * The function used to modify attributes and operations | ||
| * with the `[HTMLConstructor]` extended attribute. | ||
| * | ||
| * The default value is the identity function. | ||
| */ | ||
| processHTMLConstructor?: CodeProcessor; | ||
| /** | ||
| * The function used to generate attributes and operations | ||
| * with the `[Reflect]` extended attribute. | ||
| * | ||
| * @default null | ||
| */ | ||
| processReflect?: AttributeProcessor | null; | ||
| /** | ||
| * The function used to generate attributes and operations | ||
| * with the `[Reflect]` extended attribute. | ||
| * | ||
| * @default null | ||
| */ | ||
| processReflect?: AttributeProcessor | null; | ||
| /** | ||
| * Whether non-fatal errors should be ignored. | ||
| * | ||
| * @default false | ||
| */ | ||
| suppressErrors?: boolean; | ||
| } | ||
| /** | ||
| * Whether non-fatal errors should be ignored. | ||
| * | ||
| * @default false | ||
| */ | ||
| suppressErrors?: boolean; | ||
| } | ||
| } | ||
| export = Transformer; |
| { | ||
| "name": "@types/webidl2js", | ||
| "version": "16.0.0", | ||
| "version": "16.0.1", | ||
| "description": "TypeScript definitions for webidl2js", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
| }, | ||
| "typesPublisherContentHash": "0fa3a4475e57b889daba1edd4b6ff51a57d5d05748650477200cfc8834c3ed09", | ||
| "typeScriptVersion": "2.9" | ||
| "typesPublisherContentHash": "910abd2e4f9c7aa7799ddae4e42b3bc2bf2b363ac33756b7b07894a6cabcad0d", | ||
| "typeScriptVersion": "3.0" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Wed, 13 May 2020 21:33:20 GMT | ||
| * Last updated: Fri, 15 May 2020 13:12:57 GMT | ||
| * Dependencies: [@types/webidl2](https://npmjs.com/package/@types/webidl2) | ||
@@ -14,0 +14,0 @@ * Global values: none |
5264
7.01%