-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) new line before the JSDoc of the first import (#1621)
- Loading branch information
1 parent
7e496d3
commit 599ddfb
Showing
5 changed files
with
74 additions
and
9 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
17 changes: 17 additions & 0 deletions
17
packages/svelte2tsx/test/svelte2tsx/samples/jsdoc-before-first-import/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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
///<reference types="svelte" /> | ||
<></>;// non-leading comment | ||
/**@typedef {{ a: string }} Foo */ | ||
|
||
import '' | ||
function render() { | ||
|
||
|
||
|
||
|
||
|
||
; | ||
() => (<></>); | ||
return { props: {}, slots: {}, getters: {}, events: {} }} | ||
|
||
export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/svelte2tsx/test/svelte2tsx/samples/jsdoc-before-first-import/expectedv2.ts
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
///<reference types="svelte" /> | ||
;// non-leading comment | ||
/**@typedef {{ a: string }} Foo */ | ||
|
||
import '' | ||
function render() { | ||
|
||
|
||
|
||
|
||
|
||
; | ||
async () => {}; | ||
return { props: {}, slots: {}, getters: {}, events: {} }} | ||
|
||
export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/svelte2tsx/test/svelte2tsx/samples/jsdoc-before-first-import/input.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script> | ||
// non-leading comment | ||
/**@typedef {{ a: string }} Foo */ | ||
import '' | ||
</script> |