�PNG  IHDR��;���IDATx��ܻn�0���K�� �)(�pA��� ���7�LeG{�� �§㻢|��ذaÆ 6lذaÆ 6lذaÆ 6lom��$^�y���ذag�5bÆ 6lذaÆ 6lذa{���� 6lذaÆ �`����}H�Fkm�,�m����Ӫ���ô�ô!� �x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6� �h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t ��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ ��Rn��~G���R���C����� �wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L/��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L�� lذaÆ 6l�^k��̱aÆ 6lذaÆ 6lذa;���� �_��ذaÆ 6lذaÆ 6lذaÆ ���R���IEND�B` import {Except} from './except'; import {Simplify} from './simplify'; /** Create a type that strips `readonly` from all or some of an object's keys. Inverse of `Readonly`. This can be used to [store and mutate options within a class](https://github.com/sindresorhus/pageres/blob/4a5d05fca19a5fbd2f53842cbf3eb7b1b63bddd2/source/index.ts#L72), [edit `readonly` objects within tests](https://stackoverflow.com/questions/50703834), [construct a `readonly` object within a function](https://github.com/Microsoft/TypeScript/issues/24509), or to define a single model where the only thing that changes is whether or not some of the keys are mutable. @example ``` import {Mutable} from 'type-fest'; type Foo = { readonly a: number; readonly b: readonly string[]; // To show that only the mutability status of the properties, not their values, are affected. readonly c: boolean; }; const mutableFoo: Mutable = {a: 1, b: ['2']}; mutableFoo.a = 3; mutableFoo.b[0] = 'new value'; // Will still fail as the value of property "b" is still a readonly type. mutableFoo.b = ['something']; // Will work as the "b" property itself is no longer readonly. type SomeMutable = Mutable; // type SomeMutable = { // readonly a: number; // b: readonly string[]; // It's now mutable. The type of the property remains unaffected. // c: boolean; // It's now mutable. // } ``` */ export type Mutable = Simplify< // Pick just the keys that are not mutable from the base type. Except & // Pick the keys that should be mutable from the base type and make them mutable by removing the `readonly` modifier from the key. {-readonly [KeyType in keyof Pick]: Pick[KeyType]} >;