Effect CommunityEC
Effect Community3y ago
12 replies
Jérôme MARTIN

Proposal to change Record.fromEntries' signature

Hi,

I was wondering if the signature shouldn't be
export declare const fromEntries: <A>(self: Iterable<readonly [string, A]>) => Record<string, A>;

instead of
export declare const fromEntries: <A>(self: Iterable<[string, A]>) => Record<string, A>;

I am really longing for an immutable by default Typescript library. Fighting with these readonly's all the time is really making me nervous 🙂
Was this page helpful?