Thanks to visit codestin.com Credit goes to angular.dev
An async function that takes an item and returns a boolean promise
type AsyncPredicate<T> = (item: T) => Promise<boolean>