-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript compilation errors #1862
Comments
Obviously the
and several occurrences of |
I'm wondering whether |
This is why I think it would be better just to create a custom Rollup.d.ts
and ship that (potentially then using this in the internal type imports)
The interface is pretty trivial to describe... it’s not a large surface
area. And exposing all this internal typing seems plain wrong.
…On Thu, 11 Jan 2018 at 18:36, Hendrik Liebau ***@***.***> wrote:
I'm wondering wether @types/source-map and @types/chokidar should be
listed as dependencies?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1862 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAkiyvM8JIB4yquRZfbsI9CIUd3aT95Gks5tJjiWgaJpZM4RbFww>
.
|
I disagree, that is not common at all in TS projects that are libraries.
… On 11. Jan 2018, at 17:47, Guy Bedford ***@***.***> wrote:
This is why I think it would be better just to create a custom Rollup.d.ts
and ship that (potentially then using this in the internal type imports)
The interface is pretty trivial to describe... it’s not a large surface
area. And exposing all this internal typing seems plain wrong.
On Thu, 11 Jan 2018 at 18:36, Hendrik Liebau ***@***.***>
wrote:
> I'm wondering wether @types/source-map and @types/chokidar should be
> listed as dependencies?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#1862 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AAkiyvM8JIB4yquRZfbsI9CIUd3aT95Gks5tJjiWgaJpZM4RbFww>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
fixes rollup#1862 To fix all compiler errors mentioned in rollup#1862 a TypeScript project that imports Rollup needs to add theses devDependencies: - @types/chokidar - @types/source-map - magic-string
Unfortunately this is most probably the wrong Will take a look at #1864 later. As for @guybedford's comment: When we did the conversion earlier, we never considered the types to be used publicly as this was not the problem we were trying to solve. Thus the few types that actually make sense to be used publicly are far too generic. See my comment here: #1837 (comment) But I see the advantages of maintaining these option types in rollup itself as for TypeScript users, deprecations etc. will always be up to date with the rollup version they actually use. Unfortunately I do not see I will find the time to wrap my head around improving this any time soon but if someone from the community feels up to this, please let me know! I will certainly try to support you with this! also cc @alan-agius4 |
I think those who are having error might not have I'll try to look at this soon. And will also review #1864 Gimma a couple of hours and will get back with more info :-) |
The main problem with |
Yes, that is unfortunate (for this scenario) and means you have to manually install |
@KingHenne just a small correction you don't need to install So for TS users without
|
First of all, thanks a lot for the effort that went into #1806! ❤️
Unfortunately this broke integration of Rollup into other TypeScript projects. These are the compiler errors I'm seeing in a minimal example project:
The text was updated successfully, but these errors were encountered: