From 039ab175c328c15dcb6f803bad209bc67b1a588d Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 6 Feb 2023 10:46:37 -0500 Subject: [PATCH] add comment --- src/internal/form.ts | 1 + src/internal/slot.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/internal/form.ts b/src/internal/form.ts index 33992fcf..f10772b0 100644 --- a/src/internal/form.ts +++ b/src/internal/form.ts @@ -41,6 +41,7 @@ export interface FormControlControllerOptions { setValue: (input: ShoelaceFormControl, value: unknown) => void; } +/** A reactive controller to allow form controls to participate in form submission, validation, etc. */ export class FormControlController implements ReactiveController { host: ShoelaceFormControl & ReactiveControllerHost; form?: HTMLFormElement | null; diff --git a/src/internal/slot.ts b/src/internal/slot.ts index 30d67e9f..93c461e9 100644 --- a/src/internal/slot.ts +++ b/src/internal/slot.ts @@ -1,5 +1,6 @@ import type { ReactiveController, ReactiveControllerHost } from 'lit'; +/** A reactive controller that determines when slots exist. */ export class HasSlotController implements ReactiveController { host: ReactiveControllerHost & Element; slotNames: string[] = [];