@softwareventures/maintain-project
Version:
Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited
11 lines (10 loc) • 1.13 kB
TypeScript
import type { Result } from "../result/result.js";
export declare function copy<T, U>(map: ReadonlyMap<T, U>): Map<T, U>;
export declare function empty<T, U>(map: ReadonlyMap<T, U>): boolean;
export declare function mapValue<T, U, V>(map: ReadonlyMap<T, U>, f: (value: U, key: T) => V): Map<T, V>;
export declare function mapValueFn<T, U, V>(f: (value: U, key: T) => V): (map: ReadonlyMap<T, U>) => Map<T, V>;
export declare function partitionValue<TKey, TValue, TValue2 extends TValue>(map: ReadonlyMap<TKey, TValue>, predicate: (value: TValue) => value is TValue2): [Map<TKey, TValue2>, Map<TKey, Exclude<TValue, TValue2>>];
export declare function partitionValue<TKey, TValue>(map: ReadonlyMap<TKey, TValue>, predicate: (value: TValue) => boolean): [Map<TKey, TValue>, Map<TKey, TValue>];
export declare function insert<T, U>(map: ReadonlyMap<T, U>, key: T, value: U): Map<T, U>;
export declare function liftPromises<T, U>(promises: ReadonlyMap<T, Promise<U>>): Promise<Map<T, U>>;
export declare function liftResults<TKey, TReason, TValue>(map: ReadonlyMap<TKey, Result<TReason, TValue>>): Result<TReason, Map<TKey, TValue>>;