Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add TypeScript type declaration #1

Open
johnnyoshika opened this issue Feb 14, 2021 · 0 comments
Open

Add TypeScript type declaration #1

johnnyoshika opened this issue Feb 14, 2021 · 0 comments

Comments

@johnnyoshika
Copy link
Owner

This is the TypeScript type declaration:

declare module 'exit-intent-quattro' {
  export interface Config {
    edges?: {
      top?: boolean;
      right?: boolean;
      bottom?: boolean;
      left?: boolean;
    };
    threshold?: number;
    maxDisplays?: number;
    eventThrottle?: number;
    onExitIntent: () => void;
  }

  export default function ExitIntent(options?: Config): () => void;
}

I wasn't able to configure rollup to convert this to an es module during build, so I had to exclude the type declaration from this project.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant