You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
declareconst_default: {foo: string;baz: number;};declareconstModel: typeof_default;// ⚠️ default here is not defineddeclareconstView: typeofdefault;export{Model,View};//# sourceMappingURL=A.d.ts.map
The text was updated successfully, but these errors were encountered:
hi @wessberg! Is it related to a weird behaviour I saw recently #176? By using re-exports, the resulting d.ts file doesn't resolve the inner types correctly.
Is there a way for me to install the v2.0.6? I tried npm i rollup-plugin-ts@next but didn't resolve a version
Update: Just cloned and locally installed. Seems to work fine.
Hi! First of all thanks for plugin that can bundle
d.ts
too! It's killer feature, realy!But I faced some issue, traditionally details below
tsc
(if applicable): N/AReproduction
I have package that contains some sub modules (each submodule is separate entry point). Entry point has named exports
View
andModel
(like this)I placed Views and Models to sub folders and re-export
default
up-to submodule entry point.When I build package I get broken type definition.
View
exported with typetypeof default
, but default is not defined 😔Looks like reason is chain of
export { default } from './someSourceFile'
.When I used named export all is fine. (here is result for named exports)
Repo with bug reproduction https://github.com/sedx/rollup-ts-bug
I added result of build to repo.
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: