/** * Shims for types that we can't always rely on being available globally. * * Note: these only exist at the type-level, there is no corresponding runtime * version for any of these symbols. */ type NeverToAny = T extends never ? any : T; /** @ts-ignore */ type _DOMReadableStream = globalThis.ReadableStream; /** @ts-ignore */ type _NodeReadableStream = import('stream/web').ReadableStream; type _ConditionalNodeReadableStream = typeof globalThis extends { ReadableStream: any; } ? never : _NodeReadableStream; type _ReadableStream = NeverToAny<([0] extends [1 & _DOMReadableStream] ? never : _DOMReadableStream) | ([0] extends [1 & _ConditionalNodeReadableStream] ? never : _ConditionalNodeReadableStream)>; export type { _ReadableStream as ReadableStream }; //# sourceMappingURL=shim-types.d.ts.map