question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple merging has TypeScript error

See original GitHub issue

The example (https://github.com/survivejs/webpack-merge#multiple-merging) for multiple merging gives the following TypeScript error:

Type '{ server: { target: string; output: { path: string; filename: string; }; }; client: { output: { path: string; filename: string; }; }; }' has no properties in common with type 'Configuration'.

The Configuration interface imported from webpack (@types/webpack) doesn’t allow for server/client object keys. Something like the following could allow for this:

interface ConfigurationMap {
  [name: string]: Configuration;
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chinesedfancommented, Nov 2, 2019

@uinz’s PR has been merged, so it should be fixed, as well as #110.

0reactions
bebrawcommented, Jun 30, 2020

Hi,

I have the work at develop branch in case you want to check the status and try it out. I think I will break the basic merge function in two next to get proper return types instead of any.

On 30. Jun 2020, at 6.12, Xianming Zhong notifications@github.com wrote:

@bebraw Hi, what’s the progress of v5 and how can I help?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Declaration Merging
For the purposes of this article, “declaration merging” means that the compiler merges two separate declarations declared with the same name into a...
Read more >
TypeScript: Module x cannot merge with previous ...
I have a typescript project with a module splitted into multiple files. There is a class with the same name as this module...
Read more >
AggregateError Combine Multiple Errors Into Single
In this tutorial, we will see about the AggregateError in which we can combine the multiple errors into a single error instance. AggregateError....
Read more >
TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >
What Is Interface Declaration Merging in TypeScript?
What Interface Declaration Merging allows us to do is that whenever we have two interfaces with the same name, the TypeScript compiler will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found