mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
web: add Optional type and use it
This commit is contained in:
@ -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 };
|
||||
|
Reference in New Issue
Block a user