fix deprecation warning in latest svelte-preprocess

This commit is contained in:
Damien Elmes 2021-10-26 08:43:02 +10:00
parent af9650991f
commit 6af8a47d57
69 changed files with 72 additions and 72 deletions

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { setContext } from "svelte";
import { dropdownKey } from "./context-keys";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import ButtonGroupItem from "./ButtonGroupItem.svelte";
import { setContext } from "svelte";
import { writable } from "svelte/store";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Detachable from "./Detachable.svelte";
import type { ButtonRegistration } from "./buttons";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { getContext, setContext } from "svelte";
import { writable } from "svelte/store";
import Item from "./Item.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, createEventDispatcher } from "svelte";
let inputRef: HTMLInputElement;

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
export let detached = false;
</script>

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, createEventDispatcher, getContext } from "svelte";
import { nightModeKey } from "./context-keys";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { setContext } from "svelte";
import { dropdownKey } from "./context-keys";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import IconConstrain from "./IconConstrain.svelte";
import { getContext, onMount, createEventDispatcher } from "svelte";
import { nightModeKey, dropdownKey } from "./context-keys";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Detachable from "./Detachable.svelte";
import type { Register, Registration } from "./registration";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, createEventDispatcher, getContext } from "svelte";
import { nightModeKey, dropdownKey } from "./context-keys";
import type { DropdownProps } from "./dropdown";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { setContext } from "svelte";
import { writable } from "svelte/store";
import Item from "./Item.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, createEventDispatcher, getContext } from "svelte";
import { nightModeKey } from "./context-keys";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
export let value: string | undefined = undefined;
export let selected = false;
</script>

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { createEventDispatcher, onMount } from "svelte";
import { registerShortcut } from "../lib/shortcuts";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
export let id: string | undefined = undefined;
let className: string = "";
export { className as class };

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
export let id: string | undefined = undefined;
let className: string = "";
export { className as class };

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { Readable } from "svelte/store";
import { getContext } from "svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Dropdown from "bootstrap/js/dist/dropdown";
import { setContext, onDestroy } from "svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onDestroy } from "svelte";
import { registerShortcut, getPlatformString } from "../lib/shortcuts";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript" context="module">
<script lang="ts" context="module">
import { writable } from "svelte/store";
type KeyType = Symbol | string;
@ -43,7 +43,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
</script>
<script lang="typescript">
<script lang="ts">
export let key: KeyType;
export let update: (event: Event) => boolean;

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount } from "svelte";
export let html: string;

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import marked from "marked";
import { infoCircle } from "./icons";
import WithTooltip from "../components/WithTooltip.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import ButtonGroup from "../components/ButtonGroup.svelte";
import ButtonGroupItem from "../components/ButtonGroupItem.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, createEventDispatcher, getContext } from "svelte";
import { nightModeKey } from "../components/context-keys";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import IconButton from "../components/IconButton.svelte";
import WithShortcut from "../components/WithShortcut.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script context="module" lang="typescript">
<script context="module" lang="ts">
import { CodeMirror as CodeMirrorLib } from "./code-mirror";
export interface CodeMirrorAPI {
@ -10,7 +10,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
</script>
<script lang="typescript">
<script lang="ts">
import { createEventDispatcher, getContext } from "svelte";
import type { Writable } from "svelte/store";
import storeSubscribe from "../sveltelib/store-subscribe";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import ButtonGroup from "../components/ButtonGroup.svelte";
import ButtonGroupItem from "../components/ButtonGroupItem.svelte";
import IconButton from "../components/IconButton.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import IconButton from "../components/IconButton.svelte";
import WithShortcut from "../components/WithShortcut.svelte";
import WithState from "../components/WithState.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script context="module" lang="typescript">
<script context="module" lang="ts">
import IconButton from "../components/IconButton.svelte";
import LabelButton from "../components/LabelButton.svelte";
import WithShortcut from "../components/WithShortcut.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script context="module" lang="typescript">
<script context="module" lang="ts">
import "./legacy.css";
import { updateAllState, resetAllState } from "../components/WithState.svelte";
@ -33,7 +33,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
};
</script>
<script lang="typescript">
<script lang="ts">
import StickyHeader from "../components/StickyHeader.svelte";
import ButtonToolbar from "../components/ButtonToolbar.svelte";
import Item from "../components/Item.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import ButtonGroup from "../components/ButtonGroup.svelte";
import ButtonGroupItem from "../components/ButtonGroupItem.svelte";
import IconButton from "../components/IconButton.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import ButtonGroup from "../components/ButtonGroup.svelte";
import ButtonGroupItem from "../components/ButtonGroupItem.svelte";
import CommandIconButton from "./CommandIconButton.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { bridgeCommand } from "../lib/bridgecommand";
import * as tr from "../lib/ftl";
import { withButton } from "../components/helpers";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { bridgeCommand } from "../lib/bridgecommand";
import * as tr from "../lib/ftl";
import { withButton } from "../components/helpers";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, getContext, createEventDispatcher } from "svelte";
import { nightModeKey } from "../components/context-keys";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Badge from "../components/Badge.svelte";
import { deleteIcon } from "./icons";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import TagWithTooltip from "./TagWithTooltip.svelte";
import TagDeleteBadge from "./TagDeleteBadge.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { createEventDispatcher, tick } from "svelte";
import type { Writable } from "svelte/store";
import StickyFooter from "../components/StickyFooter.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, createEventDispatcher, tick } from "svelte";
import {
normalizeTagname,

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import SelectedTagBadge from "./SelectedTagBadge.svelte";
import AddTagBadge from "./AddTagBadge.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Tag from "./Tag.svelte";
import WithTooltip from "../components/WithTooltip.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import ButtonGroup from "../components/ButtonGroup.svelte";
import ButtonGroupItem from "../components/ButtonGroupItem.svelte";
import IconButton from "../components/IconButton.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { createEventDispatcher, tick } from "svelte";
import type Dropdown from "bootstrap/js/dist/dropdown";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { colorHelperIcon } from "./icons";
export let color: string;

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import * as tr from "../../lib/ftl";
import type { Readable } from "svelte/store";
import { getContext } from "svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import * as tr from "../../lib/ftl";
import type { Readable } from "svelte/store";
import { getContext } from "svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { createEventDispatcher, onDestroy } from "svelte";
import { nodeIsElement } from "../../lib/dom";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { onMount, createEventDispatcher } from "svelte";
import { ChangeTimer } from "../change-timer";
import { CodeMirror, latex, baseOptions } from "../code-mirror";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import ButtonGroup from "../../components/ButtonGroup.svelte";
import ButtonGroupItem from "../../components/ButtonGroupItem.svelte";
import IconButton from "../../components/IconButton.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { Stats } from "../lib/proto";
import type { PreferenceStore } from "../sveltelib/preferences";
import { createEventDispatcher } from "svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { GraphBounds } from "./graph-helpers";
export let bounds: GraphBounds;

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { Stats } from "../lib/proto";
import * as tr from "../lib/ftl";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { createEventDispatcher } from "svelte";
import type { Stats } from "../lib/proto";
import type { PreferenceStore } from "../sveltelib/preferences";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Graph from "./Graph.svelte";
import InputBox from "./InputBox.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { Stats } from "../lib/proto";
import type { PreferenceStore } from "../sveltelib/preferences";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import { createEventDispatcher } from "svelte";
import type { Stats } from "../lib/proto";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
export let title: string;
export let subtitle: string | null = null;
</script>

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import * as tr from "../lib/ftl";
import { RevlogRange, GraphRange } from "./graph-helpers";
import { timeSpan, MONTH, YEAR } from "../lib/time";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { SvelteComponent } from "svelte/internal";
import { writable } from "svelte/store";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import AxisTicks from "./AxisTicks.svelte";
import NoDataOverlay from "./NoDataOverlay.svelte";
import CumulativeOverlay from "./CumulativeOverlay.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Graph from "./Graph.svelte";
import InputBox from "./InputBox.svelte";
import AxisTicks from "./AxisTicks.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Graph from "./Graph.svelte";
import InputBox from "./InputBox.svelte";
import HistogramGraph from "./HistogramGraph.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { GraphBounds } from "./graph-helpers";
import * as tr from "../lib/ftl";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import InputBox from "./InputBox.svelte";
import type { Writable } from "svelte/store";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import Graph from "./Graph.svelte";
import InputBox from "./InputBox.svelte";
import NoDataOverlay from "./NoDataOverlay.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { TableDatum } from "./graph-helpers";
import { direction } from "../lib/i18n";
export let tableData: TableDatum[];

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { Stats } from "../lib/proto";
import Graph from "./Graph.svelte";

View File

@ -2,7 +2,7 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
<script lang="ts">
import type { Writable } from "svelte/store";
import type { PreferenceRaw, PreferencePayload } from "../sveltelib/preferences";