ruby / gem_rbs_collection

A collection of RBS for gems.
MIT License
246 stars 101 forks source link

Allow Array in `Sinatra::JSON#json` argument #567

Closed euglena1215 closed 1 month ago

euglena1215 commented 1 month ago

Sinatra::JSON#json was able to properly encode a list of objects as JSON, but was unable to represent them as types.

Fixed this so that Arrays are also accepted with type overloading.

github-actions[bot] commented 1 month ago

@euglena1215 Thanks for your contribution!

Please follow the instructions below for each change. See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.


sinatra-contrib

You changed RBS files for an existing gem. You can merge this PR yourself because you are a reviewer of this gem. Just comment /merge to merge this PR.

You can also request a review from other reviewers if you want.


sinatra

You changed RBS files for an existing gem. You can merge this PR yourself because you are a reviewer of this gem. Just comment /merge to merge this PR.

You can also request a review from other reviewers if you want.

euglena1215 commented 1 month ago

/merge