Skip to content

Add TypeScript type declaration #1

@johnnyoshika

Description

@johnnyoshika

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions