8000 Runtime validation API in "development mode" · Issue #2153 · ReactiveX/rxjs · GitHub
[go: up one dir, main page]

Skip to content
Runtime validation API in "development mode" #2153
@kentcdodds

Description

@kentcdodds

Inspired by conversations in this PR: #2152

Would be cool to do full runtime validation like React does (it uses invariant). PropTypes is one of the most valuable things available from React. As cool as static type checking is, runtime checking will always be more powerful (and works for anyone regardless of whether they're using a type checker or not).

I created api-check to do this for one of my libraries and it really reduced the number of beginner issues I received. Everyone was happier.

Definitely would want to have the ability to exclude this runtime checking in the production code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0