Skip to content

Commit

Permalink
Fix declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
feast107 committed Jan 8, 2024
1 parent 04b7197 commit d651a6a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ linqes
<p align="center">
<img alt="dotnet-version" src="https://img.shields.io/badge/JavaScript-ES6-EEEE00.svg"/>
<img alt="dotnet-version" src="https://img.shields.io/badge/TypeScript-Declare-blue.svg"/>
<img alt="npm" src="https://img.shields.io/badge/npm-v1.0.4-FF3300.svg"/>
<img alt="npm" src="https://img.shields.io/badge/npm-v1.0.5-FF3300.svg"/>
<img alt="license" src="https://img.shields.io/badge/license-MIT-FF00FF.svg"/>
</p>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "linqes",
"version" : "1.0.4",
"version" : "1.0.5",
"description" : "linq in es, automated extensions on prototype",
"main" : "index.js",
"types" : "types/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ declare interface Array<T> {
*/
clear() : void

concat(source : IEnumerable<T>) : IEnumerable<T>

/**
* Determines whether the array contains elements that match the conditions defined by the specified predicate.
* @param match The delegate that defines the conditions of the elements to search for.
Expand Down Expand Up @@ -621,6 +623,14 @@ declare interface Array<T> {
* @param index The zero-based index of the element to remove.
*/
removeAt(index : number) : T | undefined

join<TInner, TKey, TResult>(
inner : IEnumerable<TInner>,
keySelector : (item : T) => TKey,
innerKeySelector : (item : TInner) => TKey,
resultSelector : (outer : T, inner : TInner) => TResult,
comparer? : ((outerKey : TKey, innerKey : TKey) => boolean)) : IEnumerable<TResult>

}

/**
Expand Down

0 comments on commit d651a6a

Please # to comment.