/
moreqqq
/
DeliveryService
Обзор
Документация
Войти
/
moreqqq
/
DeliveryService
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
server/node_modules/rxjs/src/internal/util/throwUnobservableError.ts
12 строк
564 B
moreqqq
написал приложение
29 май 2026, 22:02
29 май 2026, 22:02
ad51790
Код
Авторство
О чём код?
/** * Creates the TypeError to throw if an invalid object is passed to `from` or `scheduled`. * @param input The object that was passed. */ export function createInvalidObservableTypeError(input: any) { // TODO: We should create error codes that can be looked up, so this can be less verbose. return new TypeError( `You provided ${ input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'` } where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.` ); }