Skip to content

mikkelrom/stencil-ts-import-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stencil-ts-import-test

Issue:

When importing interface from my-component.tsx like this: import {User} from "../../../../models/User"; and running build, a js-file is generated (webcomponents/models/User.js).

Steps to reproduce:

  1. npm run build
  2. see that file webcomponents/models/User.js has been generated

How to stop it from doing that? :)


UPDATE:

Renaming models/User.ts to models/User.d.ts fixed the issue 🎉

Reference: microsoft/TypeScript#15950

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published