Skip to content

Commit

Permalink
Merge pull request #301 from magni-/patch-1
Browse files Browse the repository at this point in the history
Version `GraphQL.parse` annotations
  • Loading branch information
KaanOzkan authored Jan 24, 2025
2 parents b95c596 + fbdee86 commit abacb52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rbi/annotations/graphql.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

module GraphQL
class << self
# @version < 2.3.1
sig { params(graphql_string: String, trace: T.untyped, filename: T.untyped).returns(GraphQL::Language::Nodes::Document) }
def parse(graphql_string, trace: T.unsafe(nil), filename: T.unsafe(nil)); end
# @version >= 2.3.1
sig { params(graphql_string: String, trace: T.untyped, filename: T.untyped, max_tokens: T.untyped).returns(GraphQL::Language::Nodes::Document) }
def parse(graphql_string, trace: T.unsafe(nil), filename: T.unsafe(nil), max_tokens: T.unsafe(nil)); end
end
Expand Down

0 comments on commit abacb52

Please sign in to comment.