Skip to content

Commit

Permalink
fix: fixing typo preventing correct type-checking for the Alert in sv…
Browse files Browse the repository at this point in the history
…elte
  • Loading branch information
divdavem committed Aug 22, 2023
1 parent 0fd741e commit 6f912ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion svelte/demo/samples/alert/Dynamic.route.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import {Alert} from '@agnos-ui/svelte';
import type {AlertProps} from '@agnos-ui/core';
import type {AlertProps} from '@agnos-ui/svelte';
import {writable} from 'svelte/store';
function createAlerts() {
Expand Down
2 changes: 1 addition & 1 deletion svelte/lib/alert/Alert.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<script lang="ts">
type $$props = WidgetPropsProps<Props>;
type $$Props = WidgetPropsProps<Props>; // eslint-disable-line @typescript-eslint/no-unused-vars
type $$Events = WidgetPropsEvents<Props>;
type $$Slots = Slots; // eslint-disable-line @typescript-eslint/no-unused-vars
const dispatch = createEventDispatcher<$$Events>();
Expand Down

0 comments on commit 6f912ae

Please sign in to comment.