#1140614 node-react-dom: please add @types/node-react-dom/test-utils/index.d.ts

#1140614#5
Date:
2026-06-23 15:16:10 UTC
From:
To:
Can you add this types file ?

I do not achieve to get this installed

rouca

#1140614#10
Date:
2026-06-23 15:25:45 UTC
From:
To:
Le 23/06/2026 à 17:15, Bastien Roucaries a écrit :

Hi,

node-react already embeds @types/react-dom:

   $ apt show node-types-react-dom
   Package: node-types-react-dom
   State: not a real package (virtual)

and a missing typescript declaration cannot be a serious bug. The
serious bug is to upload a file that requires it without verifying it is
available.

#1140614#17
Date:
2026-07-10 06:14:20 UTC
From:
To:
Most likely issue is that dh-node doesn't pick the exports defined by
types-react-dom/package.json (no "files", only "types", and "exports".*."types"."default"):

    "exports": {
        ".": {
            "types": {
                "default": "./index.d.ts"
            }
        },
        "./client": {
            "types": {
                "default": "./client.d.ts"
            }
        },
        "./canary": {
            "types": {
                "default": "./canary.d.ts"
            }
        },
        "./server": {
            "types": {
                "default": "./server.d.ts"
            }
        },
        "./experimental": {
            "types": {
                "default": "./experimental.d.ts"
            }
        },
        "./test-utils": {
            "types": {
                "default": "./test-utils/index.d.ts"
            }
        },
        "./package.json": "./package.json"
    },

#1140614#22
Date:
2026-07-11 07:55:11 UTC
From:
To:
I pushed a fix for that. I'll upload the package unless someone does it before.