Confusion about experimental GenType features

The documentation lists two experimental features that haven’t been able to figure out yet:

  • "exportInterfaces": true → should export object and record types as interfaces, but I don’t see any difference with record types in the .gen files, even when annotating the type or a function consuming it with @genType. I don’t even know what it is supposed to do, since record types already have a 1:1 correspondence with JS objects.

  • "propTypes": true → should “Emit prop types for the untyped back-end” - what exactly is a “prop type”? I haven’t been able to generate any different output with this feature turned on in the untyped setting.
    [EDIT] After doing some research I see now that this is a React thing (I haven’t had much React experience yet) and the feature actually generates propTypes when using @genType on a React component.

Can someone please explain these features to me?

1 Like