Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ declare module 'collect.js' {
constructor(collection?: Item[] | Object);

/**
* The all method returns the underlying array represented by the collection.
* The all method returns the underlying array or object represented by the collection.
*/
all(): Item[];
all(): Item[] | Record<string,Item>;

Choose a reason for hiding this comment

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

I suggest:

  all(): Item[] | Record<unkown, Item>;

(see: #304 (comment))


/**
* Alias for the avg() method.
Expand Down