{"name":"@alloc/types","version":"1.0.0","main":"types.d.ts","devDependencies":{"@types/react":"^16.9.14","prettier":"^1.19.1","typescript":"^3.6.0"},"gitHead":"1e93be124633f672023d9747289e3147ccae0b66","description":"Common types for TypeScript","_id":"@alloc/types@1.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-Ry3lUB6jLO3w3kMeG/UcgcU4vZrr3Awjh35/10VBtQCft03ZkItTddAXXR8/8xCJH+P5EFezlmWrC03Iljzm1g==","shasum":"81e11e91fc5f6aaacf44f9cbae58e89c19a06698","tarball":"http://registry-npm.ywwl.com/@alloc/types/download/@alloc/types-1.0.0.tgz","fileCount":4,"unpackedSize":2006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5XGFCRA9TVsSAnZWagAA4t4P/1Zy0Q4gw7NGg5jLSRQ/\nI/PlrzJ099XgLM2O9a1m0Q6FPNdHpSzMJrGGm0Gx1OTSiNcxeT8pOvjogakq\naAPWQOzJwJmTJnSDXlVD2ecGTbdg3lTLWr7Ah7uU3SgEcyv5FHVVSTubKJvh\n7W/3/hGPEcRryFaMabPxvsgSfAuHmUHVhlK+qy62t+0A+yTcZU9o/buhCis5\nWhYcnhdxBLk+aIzXDxSIAIJzXs20MwMmEbS1r8/3vnTod/pLQV6c0ENaR5ze\nVaForyFwl9iENxijdthv8XexqRvPqQsUoOJHYniCziEuX+hO8B5YdRCuswvN\nkTocqYJxt15zo1+PrZSz/LtlR0Om5EvrUt75zgnHQbQDCLd+S0UP2hufASCD\nMRWBle2XCaVFs3u1DFA2vs3Mucl2pq7EksBkcdINGX+36I62meKYKUhPlpRK\niPvff2npCvAPUOkWrRav+FZx38YBroeQit+XOOKJxzd4/JQqzmbYnL41Ybgm\nT/rZKBhk0JEA7w6ekjg4DEyjDMmwot6/Yf6gLDMUTwY/MKUdcbAzmu0HnPh8\nbBwzyTsfzyCxZ78Z6xR+UYPKBsZNCyDQIwQc6h4jtaFF53QMpEbWQ9stm9Uv\nhWYTrah+8DiFM+x2SMibZuxMLLFpvg9oS6K8J2fg1q6KXaVTucixwQNCuEGt\n/+lE\r\n=DJS9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRbs5/7CinZPm7xBRWt5SJI+34chSTJOpBx5GAovjthAiEAzW8ERmGP0rfbsREnA94Rn9z1orDJBtVSxXBo+aZ/ixk="}],"size":1067,"noattachment":false,"key":"/@alloc/types/-/@alloc/types-1.0.0.tgz"},"maintainers":[{"name":"aleclarson","email":"aleclarson@protonmail.com"}],"_npmUser":{"name":"aleclarson","email":"aleclarson@protonmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types_1.0.0_1575317893015_0.2594164547790858"},"_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":1575317893138,"_cnpm_publish_time":1575317893138,"dist-tags":{"latest":"2.3.0"}}