UNPKG

@mixxtor/adonisjs-pusher

Version:

AdonisJS provider for Pusher real-time messaging

19 lines (18 loc) 513 B
import Pusher from 'pusher'; /** * Currency service with full type inference * * Usage: * ```ts * import currency from '@mixxtor/currencyx-adonisjs/services/currency' * * // Direct usage - no type casting needed * const rates = await currency.latestRates() * * // Provider switching with type inference * const googleProvider = currency.use('google') // Only configured providers * const rates = await googleProvider.latestRates() * ``` */ declare let pusher: Pusher; export { pusher as default };