Skip to content

Library fails npx tsc --noemit --skipLibCheck #10

Description

@billsbooth

Fails npx tsc --noemit --skipLibCheck

node_modules/react-native-viewport-detector/components/ViewPortDetector.tsx:188:7 - error TS2322: Type 'number' is not assignable to type 'Timeout'.

188       timeoutRef.current = setTimeout(checkVisibility, INITIAL_CHECK_DELAY);
          ~~~~~~~~~~~~~~~~~~

node_modules/react-native-viewport-detector/components/ViewPortDetector.tsx:198:5 - error TS2322: Type 'number' is not assignable to type 'Timeout'.

198     intervalRef.current = setInterval(checkVisibility, frequency);
        ~~~~~~~~~~~~~~~~~~~

Here is my configuration:

npm --version
11.5.2
node --version
v22.19.0
npx tsc --version
Version 5.3.3

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