What is the directory structure for adding Sorbet RBIs to a gem?

Viewed 158

I have a gem I want to add types to (either by submitting a PR or by forking to use just in my project), but the documentation does not give any more guidance other than to create an /rbi folder.

Thinking out loud, should it mirror the files in lib/ with added type signatures, or should it be one large file (per version?) like the signatures in sorbet-typed?

I don't know of any gems doing this yet, and the documentation doesn't mention it either.

1 Answers
Related