UNPKG

redis-smq

Version:

A simple high-performance Redis message queue for Node.js.

9 lines 432 B
import { ExchangeInvalidTopicParamsError } from '../../errors/index.js'; import { _getTopicExchangeParams } from './_get-topic-exchange-params.js'; export function _validateExchangeTopicParams(topicParams) { const params = _getTopicExchangeParams(topicParams); if (params instanceof Error) return new ExchangeInvalidTopicParamsError(); return params; } //# sourceMappingURL=_validate-exchange-topic-params.js.map