@types/fbjs
Version:
TypeScript definitions for fbjs
12 lines (9 loc) • 434 B
TypeScript
/**
* Partitions the enumerable properties of an object into two objects, given a
* whitelist `Set` for the first object. This is comparable to
* `whitelistObjectKeys`, but eventually keeping all the keys. Returns a tuple
* of objects `[first, second]`.
*/
declare function partitionObjectByKey(source: object, whitelist: Set<string>): [object, object];
declare namespace partitionObjectByKey {}
export = partitionObjectByKey;