mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
fix(recursive-list): explicitly type restProps
This commit is contained in:
parent
c5c4a77c93
commit
3428df49ce
3 changed files with 5 additions and 2 deletions
|
@ -7898,7 +7898,7 @@
|
|||
"ts": "interface RecursiveListNode { text?: string; href?: string; html?: string; }"
|
||||
}
|
||||
],
|
||||
"rest_props": { "type": "InlineComponent", "name": "svelte:component" }
|
||||
"rest_props": { "type": "Element", "name": "ul | ol" }
|
||||
},
|
||||
{
|
||||
"moduleName": "Row",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
/**
|
||||
* @typedef {{ text?: string; href?: string; html?: string; }} RecursiveListNode
|
||||
* @restProps {ul | ol}
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
4
types/RecursiveList/RecursiveList.d.ts
vendored
4
types/RecursiveList/RecursiveList.d.ts
vendored
|
@ -7,7 +7,9 @@ export interface RecursiveListNode {
|
|||
html?: string;
|
||||
}
|
||||
|
||||
export interface RecursiveListProps {
|
||||
export interface RecursiveListProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["ul"]>,
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["ol"]> {
|
||||
/**
|
||||
* Specify the children to render
|
||||
* @default []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue