-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) remove svelte from typings, add it to every svelte2tsx output i…
…nstead (#441) Less setup for people (`"types": ["svelte"]` now obsolete), makes TS search more of the other globals. #430
- Loading branch information
1 parent
1330142
commit 5478142
Showing
75 changed files
with
107 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
packages/language-server/test/plugins/typescript/testfiles/svelte-native/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"jsxFactory": "svelteNative" | ||
} | ||
"compilerOptions": { | ||
"jsxFactory": "svelteNative", | ||
/** | ||
This is actually not needed, but makes the tests faster | ||
because TS does not look up other types. | ||
*/ | ||
"types": ["svelte"] | ||
} | ||
} |
9 changes: 8 additions & 1 deletion
9
packages/language-server/test/plugins/typescript/testfiles/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
{ | ||
"compilerOptions": { "strict": true } | ||
"compilerOptions": { | ||
"strict": true, | ||
/** | ||
This is actually not needed, but makes the tests faster | ||
because TS does not look up other types. | ||
*/ | ||
"types": ["svelte"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/$store-index/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/array-binding-export/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let [a,b,c] = [1,2,3]; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/ast-offset-none/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
__sveltets_store_get(var); | ||
() => (<></>); | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/ast-offset-some/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
__sveltets_store_get(var); | ||
() => (<></>); | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/await-with-$store/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>; | ||
import { readable } from 'svelte/store'; | ||
function render() { | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/binding-group-store/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/circle-drawer-example/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let i = 0; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/component-default-slot/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let b = 7; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/component-multiple-slots/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let b = 7; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/component-slot-crazy-attributes/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let b = 7; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/component-with-documentation/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
<> | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...2tsx/test/svelte2tsx/samples/component-with-indented-multiline-documentation/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
<> | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...es/svelte2tsx/test/svelte2tsx/samples/component-with-multiline-documentation/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
<> | ||
|
||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-component-multi/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
<><Button ></Button> | ||
<Radio ></Radio></> | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-component/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-element/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-svelte-element/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/export-class/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
class Foo {}; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/export-js-strictMode/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let a; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/export-list/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let name = "world" | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/export-references-local/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let world = "world"; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/export-with-default-multi/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
/**@type { string | number }*/ | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/import-single-quote/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>; | ||
import Test from './Test.svelte'; | ||
function render() { | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/imports/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>; | ||
import { a as b } from "./test.svelte" | ||
import * as c from "b.ts" | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script-in-line/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script-in-line2/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>; | ||
export function preload() {} | ||
let b = 5; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script2/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>; | ||
export function preload() {} | ||
let b = 5; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/nested-$-variables-script/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let top1 = someStore() | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/nested-$-variables-template/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
<><h1 onclick={ () => { | ||
|
||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/object-binding-export/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let { name: rename } = { name: "world" }; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/reactive-block/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let a: 1 | 2 = 1; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare-object/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
|
||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
|
||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/reactive-store-set/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/renamed-exports/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let name = "world" | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/script-and-module-script/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>; | ||
export function preload() {} | ||
let b = 5; | ||
|
1 change: 1 addition & 0 deletions
1
.../svelte2tsx/test/svelte2tsx/samples/script-inside-head-after-toplevel-script/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let b = 'top level'; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/script-on-bottom/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let world = "name" | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/script-style-like-component/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let Script, Style; | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/self-closing-component/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>; | ||
import Test from './Test.svelte'; | ||
function render() { | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/single-element/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/single-export/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let name = "world" | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/stores-mustache/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/style-attribute-bare/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
<> | ||
|
||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/style-attribute/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/ts-export-arrow-function/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
let f = (a: number, b: number) => { | ||
|
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/svelte2tsx/samples/ts-export-const/expected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
///<reference types="svelte" /> | ||
<></>;function render() { | ||
|
||
const name: string = "world"; | ||
|
Oops, something went wrong.