ultron/000755 001751 000177 0000000000 14522451650014070 5ustar00runner000000 000000 1452245165014522451650ultron/LICENSE000644 001751 000177 0000002165 14522451650015101 0ustar00runner000000 000000 1452245165014522451650 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE ultron/README.md000644 001751 000177 0000004451 14522451650015342 0ustar00runner000000 000000 1452250011514522451650# Installation > `npm install --save @types/ultron` # Summary This package contains type definitions for ultron (https://github.com/unshiftio/ultron). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ultron. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ultron/index.d.ts) ````ts type Listener = (...args: any[]) => void; /** * A Node.js EventEmitter instance or an `eventemitter3` instance. */ interface EventEmitter { on(event: string | symbol, fn: Listener): void; once(event: string | symbol, fn: Listener): void; removeListener(event: string | symbol, fn: Listener): void; listeners(event: string | symbol): any[]; eventNames?(): Array; } /** * Ultron is high-intelligence robot. It gathers intelligence so it can start improving * upon his rudimentary design. It will learn from your EventEmitting patterns * and exterminate them. */ interface Ultron { /** * Register a new EventListener for the given event. * * @param event Name of the event. * @param fn Callback function. * @param context The context of the function. */ on(event: string | symbol, fn: Listener, context?: any): this; /** * Add an EventListener that's only called once. * * @param event Name of the event. * @param fn Callback function. * @param context The context of the function. */ once(event: string | symbol, fn: Listener, context?: any): this; /** * Remove the listeners we assigned for the given event(s). */ remove(...names: Array): this; /** * Destroy the Ultron instance, remove all listeners and release all references. */ destroy(): boolean; } declare const Ultron: { /** * @param ee EventEmitter instance we need to wrap. */ (ee: EventEmitter): Ultron; /** * @param ee EventEmitter instance we need to wrap. */ new(ee: EventEmitter): Ultron; }; declare namespace Ultron { export { EventEmitter, Listener }; } export = Ultron; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: none # Credits These definitions were written by [Renée Kooi](https://github.com/goto-bus-stop). ultron/index.d.ts000644 001751 000177 0000003335 14522451650015775 0ustar00runner000000 000000 1452245165014522451650type Listener = (...args: any[]) => void; /** * A Node.js EventEmitter instance or an `eventemitter3` instance. */ interface EventEmitter { on(event: string | symbol, fn: Listener): void; once(event: string | symbol, fn: Listener): void; removeListener(event: string | symbol, fn: Listener): void; listeners(event: string | symbol): any[]; eventNames?(): Array; } /** * Ultron is high-intelligence robot. It gathers intelligence so it can start improving * upon his rudimentary design. It will learn from your EventEmitting patterns * and exterminate them. */ interface Ultron { /** * Register a new EventListener for the given event. * * @param event Name of the event. * @param fn Callback function. * @param context The context of the function. */ on(event: string | symbol, fn: Listener, context?: any): this; /** * Add an EventListener that's only called once. * * @param event Name of the event. * @param fn Callback function. * @param context The context of the function. */ once(event: string | symbol, fn: Listener, context?: any): this; /** * Remove the listeners we assigned for the given event(s). */ remove(...names: Array): this; /** * Destroy the Ultron instance, remove all listeners and release all references. */ destroy(): boolean; } declare const Ultron: { /** * @param ee EventEmitter instance we need to wrap. */ (ee: EventEmitter): Ultron; /** * @param ee EventEmitter instance we need to wrap. */ new(ee: EventEmitter): Ultron; }; declare namespace Ultron { export { EventEmitter, Listener }; } export = Ultron; ultron/package.json000644 001751 000177 0000001427 14522451650016351 0ustar00runner000000 000000 1452250011514522451650{ "name": "@types/ultron", "version": "1.1.3", "description": "TypeScript definitions for ultron", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ultron", "license": "MIT", "contributors": [ { "name": "Renée Kooi", "githubUsername": "goto-bus-stop", "url": "https://github.com/goto-bus-stop" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/ultron" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "2c6aba7543c563f462202f57abbe06c0dfcfa8c9b3eb9e783a4d9627cb8e9c05", "typeScriptVersion": "4.5" }