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 package
!.env.example !.env.example
vite.config.ts.timestamp-* vite.config.ts.timestamp-*
tsconfig.tsbuildinfo
# Written to disk when using `act` # Written to disk when using `act`
.pnpm-store .pnpm-store

View File

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

View File

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

View File

@ -1,5 +1,5 @@
import { setSentryUser } from '$lib/analytics/sentry'; 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'; import type { HttpClient } from '@gitbutler/shared/httpClient';
export interface User { export interface User {

View File

@ -11,7 +11,10 @@
"skipLibCheck": true, "skipLibCheck": true,
"sourceMap": true, "sourceMap": true,
"strict": 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 // 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 // except $lib which is handled by https://kit.svelte.dev/docs/configuration#files

View File

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

View File

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