提交 92200f62 编写于 作者: B Benjamin Pasero

cannot use object type yet

上级 67924dec
......@@ -303,7 +303,8 @@ export function getOrDefault<T, R>(obj: T, fn: (obj: T) => R, defaultValue: R =
* @param base the object to diff against
* @param obj the object to use for diffing
*/
export function distinct<T>(base: object, target: object): object {
export type obj = { [key: string]: any; };
export function distinct<T>(base: obj, target: obj): obj {
const result = Object.create(null);
if (!base || !target) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册