[chore] Fix TS
This commit is contained in:
10
src/global.d.ts → src/app.d.ts
vendored
10
src/global.d.ts → src/app.d.ts
vendored
@@ -1,5 +1,15 @@
|
|||||||
/// <reference types="@sveltejs/kit" />
|
/// <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
|
* Custom Events
|
||||||
*/
|
*/
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { writable } from 'svelte/store'
|
import { writable } from 'svelte/store'
|
||||||
import EmblaCarousel from 'embla-carousel'
|
import EmblaCarousel from 'embla-carousel'
|
||||||
|
import type { EmblaCarouselType } from 'embla-carousel'
|
||||||
// Components
|
// Components
|
||||||
import Image from '$components/atoms/Image.svelte'
|
import Image from '$components/atoms/Image.svelte'
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@
|
|||||||
|
|
||||||
let arrowEl: HTMLElement
|
let arrowEl: HTMLElement
|
||||||
let carouselEl: HTMLElement
|
let carouselEl: HTMLElement
|
||||||
let carousel: any // EmblaCarouselType
|
let carousel: EmblaCarouselType
|
||||||
let currentSlide = 0
|
let currentSlide = 0
|
||||||
let arrowDirection: string = null
|
let arrowDirection: string = null
|
||||||
$: isFirstSlide = currentSlide === 0
|
$: isFirstSlide = currentSlide === 0
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getContext, onMount } from 'svelte'
|
import { getContext, onMount } from 'svelte'
|
||||||
import EmblaCarousel from 'embla-carousel'
|
import EmblaCarousel from 'embla-carousel'
|
||||||
|
import type { EmblaCarouselType } from 'embla-carousel'
|
||||||
// Components
|
// Components
|
||||||
import Poster from '$components/molecules/Poster.svelte'
|
import Poster from '$components/molecules/Poster.svelte'
|
||||||
import EmailForm from '$components/molecules/EmailForm.svelte'
|
import EmailForm from '$components/molecules/EmailForm.svelte'
|
||||||
@@ -10,7 +11,7 @@
|
|||||||
|
|
||||||
let innerWidth: number
|
let innerWidth: number
|
||||||
let carouselEl: HTMLElement
|
let carouselEl: HTMLElement
|
||||||
let carousel: any // EmblaCarouselType
|
let carousel: EmblaCarouselType
|
||||||
let currentSlide = 0
|
let currentSlide = 0
|
||||||
let carouselDots = []
|
let carouselDots = []
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
{
|
{
|
||||||
"extends": "./.svelte-kit/tsconfig.json",
|
"extends": "./.svelte-kit/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptins": {
|
||||||
"paths": {
|
"allowJs": true,
|
||||||
"$components/*": ["src/components/*"],
|
"checkJs": true,
|
||||||
"$utils/*": ["src/utils/*"],
|
"esModuleInterop": true,
|
||||||
"$animations/*": ["src/animations/*"],
|
"forceConsistentCasingInFileNames": true,
|
||||||
"$modules/*": ["src/modules/*"],
|
"resolveJsonModule": true,
|
||||||
"$lib":["src/lib"],
|
"skipLibCheck": true,
|
||||||
"$lib/*":["src/lib/*"]
|
"sourceMap": true,
|
||||||
}
|
"strict": false,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
},
|
},
|
||||||
"exclude": ["src/modules/globe/**/*.js"]
|
"exclude": ["./src/modules/globe/**"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user