export const isAsyncIterable = (x: any): x is AsyncIterable => { if (x === null || x === undefined) return false; return x && typeof x[Symbol.asyncIterator] === 'function'; };