Skip to content

Commit bfdeb0d

Browse files
chore: improve rbi typedef for page classes (#154)
1 parent 9351bfa commit bfdeb0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rbi/lib/orb/page.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ module Orb
2929
headers: T.any(T::Hash[String, String], Net::HTTPHeader),
3030
page_data: T::Hash[Symbol, T.anything]
3131
)
32-
.void
32+
.returns(T.attached_class)
3333
end
34-
def initialize(client:, req:, headers:, page_data:)
34+
def self.new(client:, req:, headers:, page_data:)
3535
end
3636

3737
class PaginationMetadata < Orb::BaseModel

0 commit comments

Comments
 (0)