UNPKG

558 BTypeScriptView Raw
1import type { IAssoc, IAssocIn } from "./assoc.js";
2/**
3 * Extension of `IAssoc` for types supporting key removals.
4 *
5 * @param K - key type
6 * @param V - value type
7 * @param T - return type
8 */
9export interface IDissoc<K, V, T> extends IAssoc<K, V, T> {
10 dissoc(key: K): T;
11}
12/**
13 * Extension of `IAssocIn` for types supporting key removals.
14 *
15 * @param K - key type
16 * @param V - value type
17 * @param T - return type
18 */
19export interface IDissocIn<K, V, T> extends IAssocIn<K, V, T> {
20 dissocIn(key: K[]): T;
21}
22//# sourceMappingURL=dissoc.d.ts.map
\No newline at end of file