Fix stupid typescript error...
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Garrett Mills 2021-11-25 16:50:01 -06:00
parent fe0b4d6d8f
commit 265837b5cd

View File

@ -330,7 +330,7 @@ export class AsyncCollection<T> {
await this.each(async (item, index) => {
const result = await func(item, index)
if ( typeof result !== 'undefined' ) {
newItems.push(result as NonNullable<T2>)
newItems.push(result as unknown as NonNullable<T2>)
}
})