web: add Optional type and use it

This commit is contained in:
dumbmoron
2024-07-21 17:26:21 +00:00
parent f93f3cd558
commit bb446ecf3e
7 changed files with 19 additions and 11 deletions

View File

@ -1,7 +1,9 @@
<script lang="ts">
export let width: string | undefined = undefined;
export let height: string | undefined = undefined;
export let hidden: boolean | undefined = undefined;
import type { Optional } from "$lib/types/generic";
export let width: Optional<string> = undefined;
export let height: Optional<string> = undefined;
export let hidden: Optional<boolean> = undefined;
let _class = '';
export { _class as class };