Skip to content

Commit

Permalink
Merge pull request #85 from kolodny/hotfix-for-array-type
Browse files Browse the repository at this point in the history
fix($types): support array index
  • Loading branch information
andreiglingeanu committed Jan 31, 2018
2 parents b5842f7 + 508abc4 commit 936c034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

export = update

// declare function update<T>(data: T, query: update.Query<T>): T
declare function update<T>(
data: ReadonlyArray<T>,
query: ArrayOperators<T>,
Expand Down Expand Up @@ -39,6 +38,7 @@ type ArrayOperators<T> =
| {$push: T}
| {$unshift: T}
| {$splice: Array<[number, number]>}
| {[customCommand: string]: any}

type MapOperators<K, V> = {$add: Array<[K, V]>} | {$remove: K[]}
type SetOperators<T> = {$add: T[]} | {$remove: T[]}
Expand Down

4 comments on commit 936c034

@cajoy
Copy link

@cajoy cajoy commented on 936c034 Feb 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we release it sometime soon?

@andreiglingeanu
Copy link
Collaborator Author

@andreiglingeanu andreiglingeanu commented on 936c034 Feb 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to release 2.6.5 this week. Those that sound okay?

@cajoy
Copy link

@cajoy cajoy commented on 936c034 Feb 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it is still not released

@andreiglingeanu
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay! Releasing it right after getting #94 merged :)

Please sign in to comment.