Skip to content

Commit

Permalink
Add missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kayahr committed Jan 28, 2025
1 parent ae349fd commit 71a14b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/components/For.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import type { Element } from "../utils/types.js";
* Properties for {@link For} component.
*/
export interface ForProperties<T = unknown> {
/** The values to iterate over. Either a fixed array or a function returning an array (with dependency tracking) or a signal containing an array. */
each: T[] | (() => T[]);

/** The children to render for each iterated value. */
children: (item: T, index: CallableSignal<number>) => Element;
}

Expand Down

0 comments on commit 71a14b6

Please sign in to comment.