@mixxtor/currencyx-adonisjs
Version:
AdonisJS integration for CurrencyX.js with database exchange provider and cache support
35 lines (34 loc) • 846 B
TypeScript
/**
* @mixxtor/currencyx-adonisjs
*
* (c) Mixxtor
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import type { ApplicationService } from '@adonisjs/core/types';
import CurrencyService from '@mixxtor/currencyx-js';
/**
* Extend AdonisJS container bindings with currency service
*/
declare module '@adonisjs/core/types' {
interface ContainerBindings {
'currency.manager': CurrencyService;
}
}
export default class CurrencyProvider {
protected app: ApplicationService;
constructor(app: ApplicationService);
/**
* Register currency service
*/
register(): Promise<void>;
/**
* Boot the provider
*/
boot(): Promise<void>;
/**
* Shutdown the provider
*/
shutdown(): Promise<void>;
}