Skip to content

Commit 681001c

Browse files
committed
Made inits public for NoArguments and PageInfo
1 parent daa556a commit 681001c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
public struct NoArguments: Decodable {
2-
init() {}
2+
public init() {}
33
}

Sources/Graphiti/Connection/PageInfo.swift

+7
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,11 @@ public struct PageInfo: Codable {
33
public let hasNextPage: Bool
44
public let startCursor: String?
55
public let endCursor: String?
6+
7+
public init(hasPreviousPage: Bool, hasNextPage: Bool, startCursor: String? = nil, endCursor: String? = nil) {
8+
self.hasPreviousPage = hasPreviousPage
9+
self.hasNextPage = hasNextPage
10+
self.startCursor = startCursor
11+
self.endCursor = endCursor
12+
}
613
}

0 commit comments

Comments
 (0)