Skip to content

Commit

Permalink
docs: document Context
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jun 18, 2024
1 parent 46c66e6 commit 9d0a2fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Cell v0.1.3 | Copyright 2024 Yoshiya Hinosawa and Capsule contributors | MIT license */
/*! Cell v0.1.2 | Copyright 2024 Yoshiya Hinosawa and Capsule contributors | MIT license */
import { documentReady, logEvent } from "./util.ts";

interface Initializer {
Expand All @@ -20,6 +20,11 @@ interface EventRegistry {
};
}

/**
* The context of the component. This context is passed as the first argument to the component function for each mount.
*
* @typeParam EL The element type of the component
*/
export interface Context<EL = HTMLElement> {
/** The element */
el: EL;
Expand Down

0 comments on commit 9d0a2fb

Please sign in to comment.