mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 06:22:55 +08:00
13 lines
280 B
TypeScript
13 lines
280 B
TypeScript
/// <reference path="shallowequal.d.ts" />
|
|
|
|
import shallowEqual = require('shallowequal');
|
|
|
|
const a = {}, b = {};
|
|
function compare(a: any, b: any, indexOrKey?: number | string) {
|
|
return false;
|
|
}
|
|
|
|
shallowEqual(a, b);
|
|
shallowEqual(a, b, compare);
|
|
shallowEqual(a, b, compare, {});
|