Skip to content

Commit ffd4303

Browse files
authored
(chore) some cleanup (#1900)
1 parent 98e485e commit ffd4303

File tree

12 files changed

+24
-24
lines changed

12 files changed

+24
-24
lines changed

docs/preprocessors/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Make sure to follow the [setup instructions](/packages/svelte-vscode#setup)
112112
The following code may throw an error like `Variable 'show' implicitly has type 'any' in some locations where its type cannot be determined.`, if you have stricter type settings:
113113

114114
```html
115-
<script lang="typescript">
115+
<script lang="ts">
116116
export let data: { someKey: string | null };
117117
118118
$: show = !!data.someKey; // <-- `show` has type `any`

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/ignore-false-positives/input.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="typescript">
1+
<script lang="ts">
22
export let noUsedBeforeDeclare: number, anotherUsed: boolean;
33
const blubb = 2;
44
$: bla = blubb * 2;

packages/language-server/test/plugins/typescript/testfiles/code-actions/codeactions.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="typescript">
1+
<script lang="ts">
22
import {C} from 'blubb';
33
import {B} from 'bla';
44
import {A} from 'bla';

packages/language-server/test/plugins/typescript/testfiles/definitions.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="typescript">
1+
<script lang="ts">
22
import {blubb} from './definitions';
33
import ImportedFile from './imported-file.svelte';
44
function bla() {return true;}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script lang="typescript">const asd: string = true;asd;</script>
1+
<script lang="ts">const asd: string = true;asd;</script>

packages/language-server/test/plugins/typescript/testfiles/documentation.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="typescript">
1+
<script lang="ts">
22
import { foo } from './documentation'
33
44
fo

packages/language-server/test/plugins/typescript/testfiles/find-references-ignore-generated.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="typescript">
1+
<script lang="ts">
22
let a: string | boolean = null as any;
33
let promise = Promise.resolve(true);
44
</script>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script lang="typescript">export let prop: string;</script>
1+
<script lang="ts">export let prop: string;</script>

packages/language-server/test/plugins/typescript/testfiles/rename/rename-ignore-generated.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="typescript">
1+
<script lang="ts">
22
let a: string | boolean = null as any;
33
let promise = Promise.resolve(true);
44
</script>

packages/language-server/test/plugins/typescript/testfiles/signature-help/signature-help.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="typescript">
1+
<script lang="ts">
22
import { foo } from '../documentation'
33
44
foo()

0 commit comments

Comments
 (0)