ultron/LICENSE000777 177776 177776 0000002165 14033431273011555 0ustar00000000 000000 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.md000777 177776 177776 0000000753 14033431273012030 0ustar00000000 000000 # 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. ### Additional Details * Last updated: Wed, 07 Apr 2021 22:31:23 GMT * Dependencies: none * Global values: none # Credits These definitions were written by [Renée Kooi](https://github.com/goto-bus-stop). ultron/index.d.ts000777 177776 177776 0000003732 14033431273012452 0ustar00000000 000000 // Type definitions for ultron 1.1 // Project: https://github.com/unshiftio/ultron // Definitions by: Renée Kooi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Minimum TypeScript Version: 3.7 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 { Listener, EventEmitter }; } export = Ultron; ultron/package.json000777 177776 177776 0000001270 14033431273013032 0ustar00000000 000000 { "name": "@types/ultron", "version": "1.1.0", "description": "TypeScript definitions for ultron", "license": "MIT", "contributors": [ { "name": "Renée Kooi", "url": "https://github.com/goto-bus-stop", "githubUsername": "goto-bus-stop" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/ultron" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "fadd04dac0efc9d89fe8948cd8a971748cd7fcd1f29c897b48b03b41d4b71212", "typeScriptVersion": "3.7" }