Skip to content

Commit

Permalink
chore(docs): use @ts-check
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Oct 7, 2024
1 parent a5aba78 commit 1644a50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/components/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
// @ts-check
import {
Header,
HeaderUtilities,
Expand Down
4 changes: 3 additions & 1 deletion docs/src/components/index.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
// @ts-check
import {
ClickableTile,
Search,
Expand All @@ -22,6 +23,8 @@
let ref = null;
let moduleName = null;
let value = "";
/** @type {import("svelte").ComponentProps<Theme>["theme"]} */
let theme = "white";
$: filteredModuleNames = pictogramNames.filter((name) =>
Expand Down Expand Up @@ -81,7 +84,6 @@
autocorrect="off"
autocapitalize="off"
spellcheck="false"
titleText="Search"
labelText="Search"
placeholder={`Search pictograms (e.g. "Airplane")`}
bind:ref
Expand Down
1 change: 1 addition & 0 deletions docs/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

declare const __VERSION: string;

0 comments on commit 1644a50

Please sign in to comment.