Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

interface does not satisfy Record<string | number | symbol, unknown> #33

Closed
lukeshay opened this issue Nov 14, 2022 · 1 comment
Closed

Comments

@lukeshay
Copy link

In TypeScript, interfaces do not satisfy the type Record<string | number | symbol, unknown> which is not what the functions are expecting. Here is a minimal example:

import { merge } from "merge-anything";

interface Arguments {
    key: string;
}

merge<Arguments, Arguments[]>({ key: "value1" }, { key: "value2" });

image

@mesqueeb
Copy link
Owner

mesqueeb commented Nov 15, 2022

@lukeshay
fixed in latest version.

it should work without issues!

Let me know how it goes! 🎉

--
merge-anything was made with 💜 by Luca Ban.
You cannot sponsor every project, but next time you do, think of this one for its prolonged maintenance.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants