mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11:25 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
4
types/Icon/Icon.d.ts
vendored
4
types/Icon/Icon.d.ts
vendored
|
@ -1,9 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import { IconSkeletonProps } from "./IconSkeleton";
|
||||
|
||||
export interface IconProps {
|
||||
export interface IconProps extends IconSkeletonProps, svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["svg"]> {
|
||||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
* Icon size must be 16px (e.g. `Add16`, `Task16`)
|
||||
*/
|
||||
render?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue