UNPKG

feedlet-widget

Version:

Lightweight JavaScript widget for capturing user feedback and exit-intent surveys

23 lines (21 loc) 618 B
import { FeedLetConfig } from './types'; import { FeedLetWidget } from './widget'; declare global { interface Window { FeedLet: { init: (config: FeedLetConfig) => FeedLetWidget; getInstance: () => FeedLetWidget | null; destroy: () => void; FeedLetWidget: typeof FeedLetWidget; }; } } declare class FeedLet { private static instance; static init(config: FeedLetConfig): FeedLetWidget; static getInstance(): FeedLetWidget | null; static destroy(): void; } export default FeedLet; export { FeedLetWidget }; export * from './types';