{"name":"@alloc/types","version":"2.1.0","types":"index.d.ts","devDependencies":{"@types/react":"^17.0.3","prettier":"^1.19.1","typescript":"^3.6.0"},"license":"MIT","gitHead":"20365c13e61cbcad47c48426acc1be91fe2123f3","description":"Common types for TypeScript","_id":"@alloc/types@2.1.0","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3HpQjwvBKe2zrNwUjdIsM/UrgmDtRgoDBwJR7whMvG6xM+SOhu2w7EQyDmpqyxS4+1ENSr1dlCKlSR2JC4L0Ug==","shasum":"2a3afcc967d835a10764c2258d47c23d82d2fcf6","tarball":"http://registry-npm.ywwl.com/@alloc/types/download/@alloc/types-2.1.0.tgz","fileCount":6,"unpackedSize":5278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJganAPCRA9TVsSAnZWagAAPbwP/1BHn5gdaArIPqIlsR0w\nA2klme+PBES9dz1BC73aMzz9LyOAqriLOQJrzcdMzB63UYAxKunOhP4ogoK/\nFggOLpIdDGlW6p2XM8l+NWYh60oXm91n3hUE+Vycsmc8wetdvIRoaEEbRggg\nCXOPj8Fk0MzofDZzSGdy5q7rTkSbYSu+Fli86HoDovWPsDTbpERTUd4EgYQU\n+IKWjBRDjJoYsQrysMqjf3DrIP+cx0U5q0iuUWDV5gue8ZUb6He8Mt+z1/i7\nbCAnhJNWtOHbsEaxGgPhNk3e/aZbRAJebdN+kqe+0aGRogkeNrHpPagxINfY\nU45G3gWsdPQyq8C0p3pAbLOCc7UUa33cy/Lk9JEn6RhET3EwDJO0OwhIVd0h\n+7T8LG1SES6MbXxrpebhbKTvNANa17XafDxhbL61I5Gqxt94aOkTf1iheWVz\ng8Hy8Obn8vBdDLSUDauY6ZBB1Mrzj/BahuOJVdkhTDC8s6lxk9MGGIS3Au7M\n0EaSZXFGBM7zCHzQtjYt7t0MfEiduabEM4asIlczYyyLG6GS876kZWGOH2Nv\neByEVhdl6wjCrVJdm/0KI7jghviY9vJ01mestVPU2tws3MG8fEiqRtFWszd3\ncvhyiUJDamGs4h9M8Bo5PIdwKGmGMkfrffeXN5z3EDe6NlbF+3wDXZXTjPXc\n+l5b\r\n=t3u4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsb+BfSJtOU2MsdQREFfz7KFUZXniCMSRfxjFjHzl/UAIhANDh7VzD/SoZ0R6v41mQ+eL1LFzGRlO3iPSWSgLPigck"}],"size":2534,"noattachment":false,"key":"/@alloc/types/-/@alloc/types-2.1.0.tgz"},"_npmUser":{"name":"aleclarson","email":"aleclarson@protonmail.com"},"directories":{},"maintainers":[{"name":"aleclarson","email":"aleclarson@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types_2.1.0_1617588239140_0.8343816870541829"},"_hasShrinkwrap":false,"readme":"# @alloc/types\n\nCommon types for TypeScript\n\n```ts\nimport { Lookup } from '@alloc/types'\nimport { ElementType } from '@alloc/types/react'\n```\n\n### Basic\n\n- `Solve<T>` for solving generic types\n\n- `Remap<T>` to simplify `&` out of an object type\n\n- `Pick<T, K>` the same as built-in `Pick` but wrapped with `Solve`\n\n- `Overwrite<T, U>` for merging two object types (where `U` takes precedence)\n\n- `MergeUnknown<T, U>` for merging two object types (where `T` takes precedence)\n\n- `MergeDefaults<T, U>` for making `T` properties optional if they exist in `U`\n\n### React\n\n- `ElementType<P>` as a workaround for [#34237](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34237)\n\n- `ComponentPropsWithRef<T>` which uses `ElementType`\n","publish_time":1617588239262,"_cnpm_publish_time":1617588239262,"dist-tags":{"latest":"2.3.0"}}