From 402c63d952b48ab4f6685fbcbbf466e72ad3257a Mon Sep 17 00:00:00 2001 From: Alexandra Petrova Date: Thu, 11 Jan 2024 03:20:57 +0400 Subject: [PATCH] Strict TS for demo --- demo/src/components/AppSidebar.svelte | 2 +- demo/src/examples/1 User Interaction.svelte | 12 ++++++------ .../10 Bearings Support and Control.svelte | 8 ++++---- demo/src/examples/11 Restyling.svelte | 14 +++++++------- demo/src/examples/12 Distance Measurement.svelte | 6 +++--- demo/src/examples/13 Load and Save.svelte | 12 ++++++------ demo/src/examples/14 Multiple profiles.svelte | 12 ++++++------ demo/src/examples/2 Programmatical Control.svelte | 8 ++++---- ...3 Mapbox Directions API and Congestions.svelte | 8 ++++---- demo/src/examples/4 Origin and Destination.svelte | 6 +++--- .../src/examples/5 Show Routes' Directions.svelte | 6 +++--- .../src/examples/6 Touch-Friendly Features.svelte | 8 ++++---- demo/src/examples/7 Events.svelte | 6 +++--- demo/src/examples/8 Aborting Requests.svelte | 8 ++++---- .../examples/9 Loading Indicator Control.svelte | 8 ++++---- demo/src/main.ts | 2 +- demo/src/router.ts | 5 +++-- tsconfig.json | 15 +++++++-------- tsconfig.lib.json | 3 ++- 19 files changed, 75 insertions(+), 74 deletions(-) diff --git a/demo/src/components/AppSidebar.svelte b/demo/src/components/AppSidebar.svelte index 02f61917..05b2b479 100644 --- a/demo/src/components/AppSidebar.svelte +++ b/demo/src/components/AppSidebar.svelte @@ -4,7 +4,7 @@ export let noHeader = false; - const meta = examples.find((example) => example.path === $location); + const meta = examples.find((example) => example.path === $location)!;