We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24531d1 commit d81634cCopy full SHA for d81634c
storage/framework/core/collections/src/index.ts
@@ -1949,7 +1949,7 @@ function SymbolIterator() {
1949
}
1950
1951
1952
-export const collect = <T extends object>(collection?: T | T[] | Collection<T>): Collection<T> =>
+export const collect = <T extends object | number>(collection?: T | T[] | Collection<T>): Collection<T> =>
1953
new Collection<T>(collection)
1954
1955
export default collect
0 commit comments