File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const fs = require ( "fs" ) ;
2- const path = require ( "path" ) ;
1+ const fs = require ( "node: fs" ) ;
2+ const path = require ( "node: path" ) ;
33const pck = require ( "../package" ) ;
44const rootDir = path . resolve ( __dirname , "../" ) ;
55const distDir = path . resolve ( __dirname , "../dist" ) ;
Original file line number Diff line number Diff line change 11import { render , screen } from "@testing-library/react" ;
22import React , { useCallback } from "react" ;
3- import { IntersectionOptions , defaultFallbackInView } from "../index" ;
3+ import { type IntersectionOptions , defaultFallbackInView } from "../index" ;
44import {
55 intersectionMockInstance ,
66 mockAllIsIntersecting ,
Original file line number Diff line number Diff line change 11"use client" ;
22
3- import * as React from "react" ;
3+ import type * as React from "react" ;
44export { InView } from "./InView" ;
55export { useInView } from "./useInView" ;
66export { observe , defaultFallbackInView } from "./observe" ;
You can’t perform that action at this time.
0 commit comments