[chore] Fix TS

This commit is contained in:
2022-05-30 20:50:23 +02:00
parent c406278baf
commit c2dc2bf2fb
4 changed files with 25 additions and 12 deletions

View File

@@ -1,5 +1,15 @@
/// <reference types="@sveltejs/kit" />
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare namespace App {
// interface Locals {}
// interface Platform {}
// interface Session {}
// interface Stuff {}
}
/**
* Custom Events
*/

View File

@@ -2,6 +2,7 @@
import { onMount } from 'svelte'
import { writable } from 'svelte/store'
import EmblaCarousel from 'embla-carousel'
import type { EmblaCarouselType } from 'embla-carousel'
// Components
import Image from '$components/atoms/Image.svelte'
@@ -9,7 +10,7 @@
let arrowEl: HTMLElement
let carouselEl: HTMLElement
let carousel: any // EmblaCarouselType
let carousel: EmblaCarouselType
let currentSlide = 0
let arrowDirection: string = null
$: isFirstSlide = currentSlide === 0

View File

@@ -1,6 +1,7 @@
<script lang="ts">
import { getContext, onMount } from 'svelte'
import EmblaCarousel from 'embla-carousel'
import type { EmblaCarouselType } from 'embla-carousel'
// Components
import Poster from '$components/molecules/Poster.svelte'
import EmailForm from '$components/molecules/EmailForm.svelte'
@@ -10,7 +11,7 @@
let innerWidth: number
let carouselEl: HTMLElement
let carousel: any // EmblaCarouselType
let carousel: EmblaCarouselType
let currentSlide = 0
let carouselDots = []

View File

@@ -1,14 +1,15 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"paths": {
"$components/*": ["src/components/*"],
"$utils/*": ["src/utils/*"],
"$animations/*": ["src/animations/*"],
"$modules/*": ["src/modules/*"],
"$lib":["src/lib"],
"$lib/*":["src/lib/*"]
}
"compilerOptins": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": false,
"allowSyntheticDefaultImports": true,
},
"exclude": ["src/modules/globe/**/*.js"]
"exclude": ["./src/modules/globe/**"]
}