-
Notifications
You must be signed in to change notification settings - Fork 123
graphql: Add types for GraphQL::ExecutionError#initialize #871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graphql: Add types for GraphQL::ExecutionError#initialize #871
Conversation
Add type definitions for `GraphQL::ExecutionError#initialize` method. References: - https://graphql-ruby.org/api-doc/1.12.0/GraphQL/ExecutionError.html#initialize-instance_method - https://github.com/rmosolgo/graphql-ruby/blob/v1.12.0/lib/graphql/execution_error.rb
fc3ae74
to
d6d494d
Compare
@aruma256 Thanks for your contribution! Please follow the instructions below for each change. Available commandsYou can use the following commands by commenting on this PR.
|
This is my first PR to this repository, so I'd appreciate a review if possible. 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's mostly good 👍
gems/graphql/1.12/graphql.rbs
Outdated
@@ -191,6 +191,7 @@ module GraphQL | |||
class Error < StandardError | |||
end | |||
class ExecutionError < Error | |||
def initialize: (String message, ?ast_node: untyped, ?options: Hash[untyped, untyped]?, ?extensions: Hash[untyped, untyped]?) -> void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The options
keyword seems deprecated.
RBS has both recommended and documented implications.
I don't think deprecated arguments should be written in the signature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbb8355
to
ac6de66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APPROVE
/merge |
Add type definitions for
GraphQL::ExecutionError#initialize
method.The
GraphQL::ExecutionError
class accepts optional parameters forast_node
,, andoptions
extensions
.References: