fix: update tsconfig related options

This commit is contained in:
ndom91 2024-10-21 11:51:29 +02:00 committed by Nico Domino
parent 1838fab7c3
commit f928b25fff
7 changed files with 19 additions and 4 deletions

1
.gitignore vendored
View File

@ -35,6 +35,7 @@ build
package
!.env.example
vite.config.ts.timestamp-*
tsconfig.tsbuildinfo
# Written to disk when using `act`
.pnpm-store

View File

@ -1,3 +1,7 @@
<script lang="ts" module>
type T = any;
</script>
<script lang="ts" generics="T">
/**
* Lazily renders a list of many many items. This is intended to be used

View File

@ -1,4 +1,6 @@
<script lang="ts" module>
type T = string;
export type SelectItem<T extends string = string> = {
label: string;
value: T;

View File

@ -1,5 +1,5 @@
import { setSentryUser } from '$lib/analytics/sentry';
import { writable } from 'svelte/store';
import { writable, type Writable } from 'svelte/store';
import type { HttpClient } from '@gitbutler/shared/httpClient';
export interface User {

View File

@ -11,7 +11,10 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"declaration": true,
"composite": true,
"declarationMap": true
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files

View File

@ -12,7 +12,9 @@
"sourceMap": true,
"strict": true,
"experimentalDecorators": true,
"declaration": true
"declaration": true,
"composite": true,
"declarationMap": true
},
"include": [
".svelte-kit/ambient.d.ts",

View File

@ -11,7 +11,10 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"declaration": true,
"composite": true,
"declarationMap": true
},
"include": [
".svelte-kit/ambient.d.ts",