Add failing JSDoc property svelte-migrate conversion tests

pull/15567/head
Robert Gieseke 1 year ago
parent 74917ae703
commit 634ccc6d21

@ -40,4 +40,10 @@
export let inline_multiline_trailing_comment = 'world'; /*
* this is a same-line trailing multiline comment
**/
/** @type {number} [default_value=1] */
export let default_value = 1;
/** @type {number} [comment_default_value=1] - This has a comment and an optional value. */
export let comment_default_value = 1;
</script>

@ -27,6 +27,8 @@
* @property {any} inline_commented_merged - This comment should be merged - with this inline comment
* @property {string} [inline_multiline_leading_comment] - this is a same-line leading multiline comment
* @property {string} [inline_multiline_trailing_comment] - this is a same-line trailing multiline comment
* @property {number} [default_value=1]
* @property {number} [comment_default_value=1] - This has a comment and an optional value.
*/
/** @type {Props} */
@ -40,6 +42,8 @@
inline_commented,
inline_commented_merged,
inline_multiline_leading_comment = 'world',
inline_multiline_trailing_comment = 'world'
inline_multiline_trailing_comment = 'world',
default_value = 1,
comment_default_value = 1
} = $props();
</script>
Loading…
Cancel
Save