fix type errors
This commit is contained in:
parent
99efa6b42c
commit
203eeb9761
7 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue