{"id":13802068,"url":"https://github.com/ljharb/prop-types-exact","last_synced_at":"2025-05-14T18:02:22.797Z","repository":{"id":41447417,"uuid":"93346321","full_name":"ljharb/prop-types-exact","owner":"ljharb","description":"For use with React PropTypes. Will error on any prop not explicitly specified.","archived":false,"fork":false,"pushed_at":"2024-12-29T07:14:14.000Z","size":121,"stargazers_count":237,"open_issues_count":1,"forks_count":7,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-05-07T08:49:47.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ljharb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":"ljharb","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":"ljharb","custom":null}},"created_at":"2017-06-04T22:54:03.000Z","updated_at":"2024-12-29T07:14:17.000Z","dependencies_parsed_at":"2024-05-22T17:56:41.937Z","dependency_job_id":"1a4b330c-72ab-41e1-833c-6f4bf49253de","html_url":"https://github.com/ljharb/prop-types-exact","commit_stats":{"total_commits":95,"total_committers":2,"mean_commits":47.5,"dds":"0.010526315789473717","last_synced_commit":"446b915ea01911666b0e1f2ea35512ac6389360c"},"previous_names":["ljharb/prop-types-exact"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljharb%2Fprop-types-exact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljharb%2Fprop-types-exact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljharb%2Fprop-types-exact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljharb%2Fprop-types-exact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljharb","download_url":"https://codeload.github.com/ljharb/prop-types-exact/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198453,"owners_count":22030964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:34.807Z","updated_at":"2025-05-14T18:02:22.140Z","avatar_url":"https://github.com/ljharb.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://ko-fi.com/ljharb","https://thanks.dev/ljharb"],"categories":[],"sub_categories":[],"readme":"# prop-types-exact \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nFor use with React PropTypes. Will error on any prop not explicitly specified.\n\n## Usage\n\n```jsx\nimport PropTypes from 'prop-types';\nimport exact from 'prop-types-exact';\n\nfunction Foo({ foo, bar }) {\n  return \u003cdiv\u003e{foo}{bar}\u003c/div\u003e\n}\nFoo.propTypes = exact({\n  foo: PropTypes.string,\n  bar: PropTypes.number,\n});\n\n\u003cFoo foo=\"hi\" bar={3} /\u003e // no warnings\n\n\u003cFoo foo=\"hi\" bar={3} baz=\"extra\" /\u003e // propTypes warning!\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/prop-types-exact\n[npm-version-svg]: http://versionbadg.es/ljharb/prop-types-exact.svg\n[deps-svg]: https://david-dm.org/ljharb/prop-types-exact.svg\n[deps-url]: https://david-dm.org/ljharb/prop-types-exact\n[dev-deps-svg]: https://david-dm.org/ljharb/prop-types-exact/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/prop-types-exact#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/prop-types-exact.png?downloads=true\u0026stars=true\n[license-image]: http://img.shields.io/npm/l/prop-types-exact.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/prop-types-exact.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=prop-types-exact\n[codecov-image]: https://codecov.io/gh/ljharb/prop-types-exact/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/prop-types-exact/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/prop-types-exact\n[actions-url]: https://github.com/ljharb/prop-types-exact/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljharb%2Fprop-types-exact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljharb%2Fprop-types-exact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljharb%2Fprop-types-exact/lists"}