Should the types generated by `pnpm wrangler types` be available as ambient types without needing to

Should the types generated by pnpm wrangler types be available as ambient types without needing to reference the types in each file? I am finding that they are not, and I have to use /// <reference path="../worker-configuration.d.ts" /> at the top of the file for them to work. My tsconfig, in case I'm misconfiguring:
{
  "files": [],
  "references": [
    {
      "path": "./tsconfig.node.json"
    },
    {
      "path": "./tsconfig.cloudflare.json"
    }
  ],
  "include": [
    "worker-configuration.d.ts"
  ],
  "compilerOptions": {
    "checkJs": true,
    "verbatimModuleSyntax": true,
    "skipLibCheck": true,
    "strict": true,
    "noEmit": true,
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "./app/*"
      ]
    }
  }
}
Was this page helpful?