GitShow/ljharb/prop-types-tools
ljharb

prop-types-tools

Custom React PropType validators

by ljharb
Star on GitHubForknpm

JavaScript

664 stars49 forks22 contributorsQuiet · 7mo agoSince 2016MIT

Meet the team

See all 22 on GitHub →
ljharb
ljharb222 contributions
ahuth
ahuth3 contributions
HawkeyePierce89
HawkeyePierce892 contributions
lifeiscontent
lifeiscontent1 contribution
Teaflavored
Teaflavored1 contribution
brucewpaul
brucewpaul1 contribution
znarf
znarf1 contribution
gilbox
gilbox1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 7mo ago
See all on GitHub →
mqklin
React 19 PropTypes Deprecation - Future StrategyOpenIssue

Will this library continue to support PropTypes validation? If yes, in which way? I'm asking because I don't plan to move to TypeScript, so my only option for now is to write a custom babel-plugin which will call .

mqklin · 1y ago
ljharb
[New] add explicit react 17 supportOpenPR

Fixes #73.

ljharb · 2y ago
m-nathani
SyntaxError Unexpected end of script at `t.getComponentName(airbnb-prop-types/src/helpers/getComponentName)`OpenIssue

We got this error from airbnb proptypes... haven't faced such issue before. it throws an error on line For more detail can check here for issue that we catch on our sentry instance: https://umai.sentry.io/share/issue/23296973e27047f28f20447e8519fcc4/ Versions:

m-nathani · 2y ago

Recent fixes

View closed PRs →
Nantris
forbidExtraProps seems to have no effectClosedIssue

All the other prop types checks we use both from airbnb and elsewhere seem to work as expected, but has no effect no matter where we try it or what we pass it. We're using with . Any thoughts? Is it broken? Surely we can't be the only ones? We do not use Use of airbnb-js-shims, but after reviewing the shims, all functions are already supported in our environment without shimming.

Nantris · 4y ago
majapw
`explicitNull` does not work when part of `PropTypes.oneOfType`ClosedIssue

Things that work as expected: breaks for anything that is not , including . breaks on breaks on Things that do not work as expected: breaks on passes on

majapw · 4y ago
knowler
[New] support fragments in `renderableChildren` helperMergedPR

I've expanded the helper to include children of fragments. This resolves #71, which means that the validator can now validate the type of children within fragments. I have added tests for this validator; the tests are copied from the similar tests for children passed an array. This also affects and validators which both use the helper. I have not added the tests for these, but I can if necessary.

knowler · 5y ago
Structured data for AI agents

Repository: ljharb/prop-types-tools. Description: Custom React PropType validators Stars: 664, Forks: 49. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Open PRs: 1, open issues: 10. Last activity: 7mo ago. Community health: 85%. Top contributors: ljharb, ahuth, HawkeyePierce89, lifeiscontent, Teaflavored, brucewpaul, znarf, gilbox, sibnerian, lencioni and others.

·@ofershap

Replace github.com with gitshow.dev