Skip to content

Commit

Permalink
docs(facets): correct return type for facetFns
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Oct 11, 2024
1 parent e4a539c commit 8fcfc06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions facets.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ export const facetFns = {
* Returns a function that creates a facet function for the source of the given
* checkpoint.
* @param {string} cp the checkpoint
* @returns {function(bundle: Bundle): Set<string>} a facet function
* @returns {
function(bundle: Bundle): string[]
} a facet function
*/
checkpointSource: (cp) => (bundle) => Array.from(
bundle.events
Expand All @@ -181,7 +183,7 @@ export const facetFns = {
* Returns a function that creates a facet function for the target of the given
* checkpoint.
* @param {string} cp the checkpoint
* @returns {function(bundle: Bundle): Set<string>} a facet function
* @returns {function(bundle: Bundle): string[]} a facet function
*/
checkpointTarget: (cp) => (bundle) => Array.from(
bundle.events
Expand Down

0 comments on commit 8fcfc06

Please sign in to comment.