Skip to content

Commit 3862c84

Browse files
committed
attempt to document sequence
1 parent 7092441 commit 3862c84

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/kit/src/exports/hooks/sequence.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
/**
2+
* Merge an array of multiple handlers into one. The `resolve` passed
3+
* to the first handler will call the second handler, and so on,
4+
* until the last handler calls the framework.
5+
*
6+
* If handlers use the `transformPageChunk` option, the functions
7+
* will be 'chained', meaning a transform function specified in
8+
* the first handler will be applied to later handlers, and
9+
* multiple transformations can be applied.
10+
*
211
* @param {...import('types').Handle} handlers
312
* @returns {import('types').Handle}
413
*/

0 commit comments

Comments
 (0)