Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jun 28, 2023
1 parent abc3e98 commit 269f2db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/diff/children.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { isArray } from '../util';
* render (except when hydrating). Can be a sibling DOM element when diffing
* Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.
* @param {boolean} isHydrating Whether or not we are in hydration
* @param {Array<any>} refQueue an array of elements needed to invoke refs
*/
export function diffChildren(
parentDom,
Expand Down
4 changes: 3 additions & 1 deletion src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import options from '../options';
* element any new dom elements should be placed around. Likely `null` on first
* render (except when hydrating). Can be a sibling DOM element when diffing
* Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.
* @param {boolean} [isHydrating] Whether or not we are in hydration
* @param {boolean} isHydrating Whether or not we are in hydration
* @param {Array<any>} refQueue an array of elements needed to invoke refs
*/
export function diff(
parentDom,
Expand Down Expand Up @@ -330,6 +331,7 @@ export function commitRoot(commitQueue, root, refQueue) {
* @param {Array<import('../internal').Component>} commitQueue List of components
* which have callbacks to invoke in commitRoot
* @param {boolean} isHydrating Whether or not we are in hydration
* @param {Array<any>} refQueue an array of elements needed to invoke refs
* @returns {import('../internal').PreactElement}
*/
function diffElementNodes(
Expand Down

0 comments on commit 269f2db

Please sign in to comment.