Skip to content

Why we need @types/node for react-typescript? #13246

@MatrosSkin

Description

@MatrosSkin

Discussed in #12567

Originally posted by meghsohor July 4, 2022
I could not find any explanation about why do we need @types/node for a react-typescript project: https://github.com/facebook/create-react-app/blob/main/packages/cra-template-typescript/template.json

As result it is impossible to use, for instance, timeout id (result of setTimeout) because in NodeJS it has different type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions