[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]build/2023-06-15 18:19 -  
[DIR]src/2023-06-15 18:19 -  
[DIR]test/2023-06-15 18:19 -  
[TXT]CHANGELOG.md1985-10-26 08:15 1.5K 
[   ]LICENSE1985-10-26 08:15 1.0K 
[TXT]README.md1985-10-26 08:15 1.6Kd7c1522 post receive test [كارل مبارك]
[TXT]install-relevant-react.sh1985-10-26 08:15 282  
[   ]package.json2023-06-15 18:21 3.5K 
# prop-types-exact <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

For use with React PropTypes. Will error on any prop not explicitly specified.

## Usage

```jsx
import PropTypes from 'prop-types';
import exact from 'prop-types-exact';

function Foo({ foo, bar }) {
  return <div>{foo}{bar}</div>
}
Foo.propTypes = exact({
  foo: PropTypes.string,
  bar: PropTypes.number,
});

<Foo foo="hi" bar={3} /> // no warnings

<Foo foo="hi" bar={3} baz="extra" /> // propTypes warning!
```

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[package-url]: https://npmjs.org/package/prop-types-exact
[npm-version-svg]: http://versionbadg.es/airbnb/prop-types-exact.svg
[travis-svg]: https://travis-ci.org/airbnb/prop-types-exact.svg
[travis-url]: https://travis-ci.org/airbnb/prop-types-exact
[deps-svg]: https://david-dm.org/airbnb/prop-types-exact.svg
[deps-url]: https://david-dm.org/airbnb/prop-types-exact
[dev-deps-svg]: https://david-dm.org/airbnb/prop-types-exact/dev-status.svg
[dev-deps-url]: https://david-dm.org/airbnb/prop-types-exact#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/prop-types-exact.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/prop-types-exact.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/prop-types-exact.svg
[downloads-url]: http://npm-stat.com/charts.html?package=prop-types-exact