UNPKG

affiliate

Version:

A platform agnostic tool to quickly add affiliate links onto your website

30 lines (29 loc) 702 B
import Affiliate, { AffiliateConfig } from './Affiliate'; /** * Set up the global Affiliate export */ declare class Generator { state: { instances: Affiliate[]; auto?: Affiliate; }; constructor(); /** * Create a new Affiliate instance */ create: (config: Partial<AffiliateConfig>) => Affiliate; /** * Expose the instance list */ get instances(): Affiliate[]; /** * Detach automatic link traversal */ detachAll: () => void; /** * Revert all traversed links to their non-affiliated state */ revert: () => void; } declare const _default: Generator; export default _default;