Skip to content

Commit

Permalink
Improve types, make svelte-check happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Sep 30, 2024
1 parent 1ae554b commit 5551f4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
} from 'date-fns';
import { Month } from 'svelte-ux';
import type { DateRange } from '$lib/utils/dateRange.js';
import Preview from '$lib/components/Preview.svelte';
let selected: Date | null = null;
let selectedArr: Date[] = [];
let selectedRange = { from: null, to: null };
let selectedWeek = { from: null, to: null };
let selectedMultiMonth = { from: null, to: null };
let selectedRange: DateRange = { from: null, to: null };
let selectedWeek: DateRange = { from: null, to: null };
let selectedMultiMonth: DateRange = { from: null, to: null };
</script>

<h1>Examples</h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
} from 'date-fns';
import { MonthList, type SelectedDate } from 'svelte-ux';
import type { DateRange } from '$lib/utils/dateRange.js';
import Preview from '$lib/components/Preview.svelte';
let selected: SelectedDate = null;
let selectedArr: Date[] = [];
let selectedRange = { from: null, to: null };
let selectedQuarter = { from: null, to: null };
let selectedRange: DateRange = { from: null, to: null };
let selectedQuarter: DateRange = { from: null, to: null };
</script>

<h1>Examples</h1>
Expand Down

0 comments on commit 5551f4b

Please sign in to comment.