soutaro / steep

Static type checker for Ruby
MIT License
1.37k stars 84 forks source link

Consume RBS files from third parties? #623

Open thomthom opened 2 years ago

thomthom commented 2 years ago

If my project's RBS files need to refer to third party libs/gems, and there are RBS generated for this third party, how can I make steep understand/use the third party RBS in the analysis?

rpiotaix-tc commented 2 years ago

My understanding is that if the gem provides the RBS files in a sig folder, you just have to add the gem name to the Steepfile using library("gem-name-here").

If you have the signatures files in a separate folder, you can add an additional call to signature in the Steepfile.