Skip to content

Commit 8fcfc06

Browse files
committed
docs(facets): correct return type for facetFns
1 parent e4a539c commit 8fcfc06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

facets.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ export const facetFns = {
165165
* Returns a function that creates a facet function for the source of the given
166166
* checkpoint.
167167
* @param {string} cp the checkpoint
168-
* @returns {function(bundle: Bundle): Set<string>} a facet function
168+
* @returns {
169+
function(bundle: Bundle): string[]
170+
} a facet function
169171
*/
170172
checkpointSource: (cp) => (bundle) => Array.from(
171173
bundle.events
@@ -181,7 +183,7 @@ export const facetFns = {
181183
* Returns a function that creates a facet function for the target of the given
182184
* checkpoint.
183185
* @param {string} cp the checkpoint
184-
* @returns {function(bundle: Bundle): Set<string>} a facet function
186+
* @returns {function(bundle: Bundle): string[]} a facet function
185187
*/
186188
checkpointTarget: (cp) => (bundle) => Array.from(
187189
bundle.events

0 commit comments

Comments
 (0)