UNPKG

kolchoz

Version:

Calculate your earnings in real-time based on your rate and country-specific working hours.

20 lines (17 loc) 389 B
import { TCountryCode } from 'countries-list'; type Rate = { monthly: number; } | { daily: number; } | { hourly: number; }; interface Options { country: TCountryCode; currency?: string; } declare function getRatePerSecond(options: Options & Rate): { currency: string; ratePerSecond: number; }; export { type Options, type Rate, getRatePerSecond as default };