# @o3/prop-types

> Vanilla oriented type checking library based on Facebook's prop-types.

Latest version **0.0.2** (published 2018-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @o3/prop-types
pnpm add @o3/prop-types
yarn add @o3/prop-types
bun add @o3/prop-types
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-10-16 |
| First published | 2018-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | flynnham |
| Keywords | type |

## Links

- npm: https://www.npmjs.com/package/@o3/prop-types
- Repository: https://github.com/flynnham/js-prop-types
- Homepage: https://github.com/flynnham/js-prop-types#readme
- Issues: https://github.com/flynnham/js-prop-types/issues
- npm.io page: https://npm.io/package/@o3/prop-types

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-10-16

## README

# js-prop-types (experimental)

An environment agnostic reworking of
[Facebook's React prop-types](https://github.com/facebook/prop-types) implementation.

This package is intended to be used with  [@o3/typed](https://www.npmjs.com/package/@o3/typed), as a complementary abstract type
checking tool.

## What it does

This implementation allows type validation via thrown Type exceptions, which is
useful for type checking on primitive values outside of a React/Browser environment.

## Significant deviations from the original source

* Removed environment safe-guards to enable exception bubbling for type errors.

* Converted `type.isRequired` to `type.isOptional` to assume that all type
checks assume a value to be provided by default (and to throw if otherwise).

* Removal of unneeded React component support (since it's being used to validate
primitive values).

* [WIP] Replacement of ES5 compliant code and shims with their ES2015+ equivalents.

* Removal of unneeded files and old build process.

---
_Source: https://npm.io/package/@o3/prop-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
