diff --git a/rbi/annotations/graphql.rbi b/rbi/annotations/graphql.rbi index a122332..a5590ea 100644 --- a/rbi/annotations/graphql.rbi +++ b/rbi/annotations/graphql.rbi @@ -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