Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Ability to reflect on prop-type instances? #161

@sullvn

Description

@sullvn

Hello!

I'm looking for a way to reflect on generated prop-type instances. The purpose is for use in developer tooling.

The problem is that the generated instances are opaque functions with any meaningful metadata hidden in closures. I could maybe see this by design to discourage monkey-patching, but it's closing the door on some cool possibilities.

Example: https://runkit.com/awfulaxolotl/lack-of-reflection-in-prop-types
A use case: sullvn/tastes#6

So I guess my question comes down to:

  1. Could this be an addition?
  2. If I made a PR, would it be accepted?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions