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
4
types/Icon/Icon.svelte.d.ts
vendored
4
types/Icon/Icon.svelte.d.ts
vendored
|
@ -18,6 +18,10 @@ export interface IconProps
|
|||
skeleton?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This component is deprecated.
|
||||
* Use icons from "carbon-icons-svelte" instead.
|
||||
*/
|
||||
export default class Icon extends SvelteComponentTyped<
|
||||
IconProps,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue