TanStackT
TanStack2y ago
7 replies
exclusive-coral

How to get type infer?

I build a electron project use forge.And build route by docs's quick start.But cannot get type infer.
The code is same as docs show.
It may be tsconfig.json? here is tsconfig.json
{
  "compilerOptions": {
    "target": "ESNext",
    "module": "commonjs",
    "useDefineForClassFields": true,
    "allowJs": true,
    "jsx": "react-jsx",
    "skipLibCheck": true,
    "esModuleInterop": true,
    "noImplicitAny": true,
    "sourceMap": true,
    "baseUrl": ".",
    "outDir": "dist",
    "moduleResolution": "node",
    "noFallthroughCasesInSwitch": true,
    "strict": true,
    "resolveJsonModule": true
  },
  "include": [
    "src"
  ]
}
image-2.png
image-1.png
Was this page helpful?