Multiple merging has TypeScript error
See original GitHub issueThe 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:
- Created 5 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@uinz’s PR has been merged, so it should be fixed, as well as #110.
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.