UNPKG

434 BTypeScriptView Raw
1/**
2 * Partitions the enumerable properties of an object into two objects, given a
3 * whitelist `Set` for the first object. This is comparable to
4 * `whitelistObjectKeys`, but eventually keeping all the keys. Returns a tuple
5 * of objects `[first, second]`.
6 */
7declare function partitionObjectByKey(source: object, whitelist: Set<string>): [object, object];
8
9declare namespace partitionObjectByKey {}
10
11export = partitionObjectByKey;