UNPKG

great-tariff

Version:

A satirical NPM package that lets you apply fake tariffs to imported modules in your JavaScript project.

14 lines (12 loc) 420 B
interface TariffPolicy { tariffRate?: number; action: 'block' | 'delay' | 'log'; } interface TariffConfig { policies: Record<string, TariffPolicy>; mode?: string; } declare const defaultConfig: TariffConfig; declare function setConfig(config: Partial<TariffConfig>): void; declare function getConfig(): TariffConfig; export { type TariffConfig, type TariffPolicy, defaultConfig, getConfig, setConfig };