mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
fix(types): use @component
comments for deprecation notices (#1111)
The Svelte Language Server allows component-level comments through `<!-- @component ... -->` syntax. Deprecation notices for components should be moved from the script block to the markup template.
This commit is contained in:
parent
7c0086d00c
commit
df4ed9d75a
13 changed files with 61 additions and 40 deletions
|
@ -1,10 +1,4 @@
|
|||
<script>
|
||||
/**
|
||||
* @deprecated
|
||||
* This component will be removed in version 1.0.0.
|
||||
* Use `HeaderSearch` instead
|
||||
*/
|
||||
|
||||
/**
|
||||
* @event {{ action: "search"; textInput: string; }} inputSearch
|
||||
*/
|
||||
|
@ -64,6 +58,10 @@
|
|||
}}"
|
||||
/>
|
||||
|
||||
<!-- @component
|
||||
@deprecated
|
||||
This component is deprecated. Use `HeaderSearch` instead.
|
||||
-->
|
||||
<div
|
||||
bind:this="{elTypeSearch}"
|
||||
role="search"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue