Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

243
Views
TypeScript not generating declaration files

For whatever reason, I am not getting any .d.ts files. How can I produce definition files correctly?

compile command

npx tsc

tsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./src",
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "rootDirs": [
      "src",
      "stories",
      "config"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "jsx": "react-jsx",
    // Ensure that .d.ts files are created by tsc, but not .js files
    "declaration": true,
    "emitDeclarationOnly": true,
    // Ensure that Babel can safely transpile files in the TypeScript project
    "isolatedModules": true,
    "outDir": "./dist"
  },
  "include": ["./src/**/*.tsx"],
  "exclude": [
    "node_modules",
    "dist",
    "docs"
  ]
}

src

src/components
src/components/FormGenerator
src/components/Input
src/components/Link
src/components/List
src/components/MoneyFormat
src/components/Select
src/components/Svg
src/components/TemplateComponent
src/components/TemplateComponent/index.tsx
src/components/TemplateComponent/TemplateComponent.stories.js
src/components/TemplateComponent/TemplateComponent.test.tsx
src/components/TemplateComponent/TemplateComponent.tsx
src/components/Text
src/components/Text/index.tsx
src/components/Text/Text.stories.js
src/components/Text/Text.tsx
src/components/index.tsx
src/themes
src/themes/default
src/themes/default/fonts
src/themes/default/palette
src/themes/default/typography
src/themes/default/themeDefault.ts
src/themes/default/variables.ts
src/themes/fonts.d.ts
src/react-app-env.d.ts
src/setupTests.js
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!