chore(deps): update all non-major dependencies (#2926)

* chore(deps): update all non-major dependencies

* fix: correct breaking changes

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sct <ryan@sct.dev>
This commit is contained in:
renovate[bot]
2023-01-03 22:06:07 +09:00
committed by GitHub
parent cd3574851a
commit 1a95d423f2
8 changed files with 3399 additions and 3735 deletions

View File

@@ -9,7 +9,10 @@ export type Maybe<T> = T | null | undefined;
* @param component Main object you want to apply properties to
* @param properties Object of properties you want to type on the main component
*/
export function withProperties<A, B>(component: A, properties: B): A & B {
export function withProperties<A extends object, B extends object>(
component: A,
properties: B
): A & B {
(Object.keys(properties) as (keyof B)[]).forEach((key) => {
Object.assign(component, { [key]: properties[key] });
});