@types/array-foreach
Advanced tools
| 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 |
+24
-13
@@ -7,18 +7,29 @@ // Type definitions for array-foreach 1.0 | ||
| /** | ||
| * Performs the specified action for each element in an array. | ||
| * @param arr Array of items to iterate over | ||
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. | ||
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | ||
| */ | ||
| * Performs the specified action for each element in an array. | ||
| * @param arr Array of items to iterate over | ||
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. | ||
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | ||
| */ | ||
| declare function forEach<T>(arr: T[], callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void): void; | ||
| declare function forEach<T, U>(arr: T[], callbackfn: (this: U, value: T, index: number, array: ReadonlyArray<T>) => void, thisArg: U): void; | ||
| declare function forEach<T, U>( | ||
| arr: T[], | ||
| callbackfn: (this: U, value: T, index: number, array: ReadonlyArray<T>) => void, | ||
| thisArg: U, | ||
| ): void; | ||
| /** | ||
| * Performs the specified action for each element in an array. | ||
| * @param arr Nodelist of items to iterate over | ||
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. | ||
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | ||
| */ | ||
| declare function forEach<T extends Node>(arr: NodeListOf<T>, callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void): void; | ||
| declare function forEach<T extends Node, U>(arr: NodeListOf<T>, callbackfn: (this: U, value: T, index: number, array: ReadonlyArray<T>) => void, thisArg: U): void; | ||
| * Performs the specified action for each element in an array. | ||
| * @param arr Nodelist of items to iterate over | ||
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. | ||
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | ||
| */ | ||
| declare function forEach<T extends Node>( | ||
| arr: NodeListOf<T>, | ||
| callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void, | ||
| ): void; | ||
| declare function forEach<T extends Node, U>( | ||
| arr: NodeListOf<T>, | ||
| callbackfn: (this: U, value: T, index: number, array: ReadonlyArray<T>) => void, | ||
| thisArg: U, | ||
| ): void; | ||
| export = forEach; |
| { | ||
| "name": "@types/array-foreach", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "TypeScript definitions for array-foreach", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-foreach", | ||
| "license": "MIT", | ||
| "author": "Steve Jenkins <https://github.com/skysteve>", | ||
| "contributors": [ | ||
| { | ||
| "name": "Steve Jenkins", | ||
| "url": "https://github.com/skysteve", | ||
| "githubUsername": "skysteve" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/array-foreach" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "f917374296ba6d178e11919128aee424c23ea6a719f9d8ac18199e07e6fd5c94", | ||
| "typeScriptVersion": "2.0" | ||
| "typesPublisherContentHash": "b18b0c0c1cd683c2c818ec537dd0fddca1b3852ae41d6256b64c689d9f0194be", | ||
| "typeScriptVersion": "4.5" | ||
| } |
@@ -8,11 +8,48 @@ # Installation | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/array-foreach | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-foreach. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-foreach/index.d.ts) | ||
| ````ts | ||
| // Type definitions for array-foreach 1.0 | ||
| // Project: https://www.npmjs.com/package/array-foreach | ||
| // Definitions by: Steve Jenkins <https://github.com/skysteve> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| Additional Details | ||
| * Last updated: Tue, 27 Dec 2016 09:33:20 GMT | ||
| * Library Dependencies: none | ||
| * Module Dependencies: none | ||
| /** | ||
| * Performs the specified action for each element in an array. | ||
| * @param arr Array of items to iterate over | ||
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. | ||
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | ||
| */ | ||
| declare function forEach<T>(arr: T[], callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void): void; | ||
| declare function forEach<T, U>( | ||
| arr: T[], | ||
| callbackfn: (this: U, value: T, index: number, array: ReadonlyArray<T>) => void, | ||
| thisArg: U, | ||
| ): void; | ||
| /** | ||
| * Performs the specified action for each element in an array. | ||
| * @param arr Nodelist of items to iterate over | ||
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. | ||
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | ||
| */ | ||
| declare function forEach<T extends Node>( | ||
| arr: NodeListOf<T>, | ||
| callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void, | ||
| ): void; | ||
| declare function forEach<T extends Node, U>( | ||
| arr: NodeListOf<T>, | ||
| callbackfn: (this: U, value: T, index: number, array: ReadonlyArray<T>) => void, | ||
| thisArg: U, | ||
| ): void; | ||
| export = forEach; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Fri, 22 Sep 2023 18:11:04 GMT | ||
| * Dependencies: none | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Steve Jenkins <https://github.com/skysteve>. | ||
| These definitions were written by [Steve Jenkins](https://github.com/skysteve). |
| { | ||
| "authors": "Steve Jenkins <https://github.com/skysteve>", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [], | ||
| "libraryMajorVersion": 1, | ||
| "libraryMinorVersion": 0, | ||
| "typeScriptVersion": "2.0", | ||
| "libraryName": "array-foreach", | ||
| "typingsPackageName": "array-foreach", | ||
| "projectName": "https://www.npmjs.com/package/array-foreach", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "master", | ||
| "globals": [], | ||
| "declaredModules": [ | ||
| "array-foreach" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "hasPackageJson": false, | ||
| "contentHash": "f917374296ba6d178e11919128aee424c23ea6a719f9d8ac18199e07e6fd5c94" | ||
| } |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5969
72.32%0
-100%55
205.56%32
-23.81%