Fix stupid typescript error...
continuous-integration/drone/push Build is passing Details

orm-types
Garrett Mills 2 years ago
parent fe0b4d6d8f
commit 265837b5cd

@ -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>)
}
})

Loading…
Cancel
Save