Skip to content

Commit

Permalink
Merge pull request #792 from wellyshen/fix/expose-inview-type
Browse files Browse the repository at this point in the history
Fix: expose InView type
  • Loading branch information
wellyshen committed Apr 17, 2022
2 parents e1d1a0f + 2b33482 commit e1e4ead
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/react-cool-inview.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
declare module "react-cool-inview" {
import type { ReactElement } from "react";
import { createElement } from "react";

export interface IntersectionObserverEntryV2
extends IntersectionObserverEntry {
Expand Down Expand Up @@ -54,4 +55,6 @@ declare module "react-cool-inview" {
export interface InViewProps extends Options<HTMLElement | null> {
children: ReactElement;
}

export const InView: (props: InViewProps) => ReturnType<typeof createElement>;
}

0 comments on commit e1e4ead

Please sign in to comment.