fix type errors

This commit is contained in:
thislight 2025-01-04 17:10:54 +08:00
parent 99efa6b42c
commit 203eeb9761
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
7 changed files with 7 additions and 7 deletions

View file

@ -51,7 +51,7 @@ function animateSlideInFromBottom(element: HTMLElement, reverse?: boolean) {
}
const BottomSheet: ParentComponent<BottomSheetProps> = (props) => {
let element: HTMLDialogElement;
let element!: HTMLDialogElement;
let animation: Animation | undefined;
const child = children(() => props.children);

View file

@ -108,7 +108,7 @@ function animateGrowFromTopLeft(
* - Use {@link MenuItem} from SUID as children.
*/
const Menu: Component<MenuProps> = (oprops) => {
let root: HTMLDialogElement;
let root!: HTMLDialogElement;
const windowSize = useWindowSize();
const [props, rest] = splitProps(oprops, [
"open",