We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d05d4bf commit a78ceb1Copy full SHA for a78ceb1
ember-set-helper/src/helpers/set.ts
@@ -13,6 +13,6 @@ export default function set<T extends object, K extends keyof T & string>(
13
typeof path === 'number',
14
);
15
return arguments.length === 3
16
- ? () => emberSet(target, path, maybeValue)
17
- : (value: unknown) => emberSet(target, path, value);
+ ? () => emberSet(target, path, maybeValue as T[K])
+ : (value?: unknown) => emberSet(target, path, value as T[K]);
18
}
0 commit comments