mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
breaking(types): type arrays as read-only (#1335)
Closes #1259 * breaking(types): type arrays as read-only * Run "yarn build:docs" * test: assert read-only arrays
This commit is contained in:
parent
1a904dda36
commit
260bf4e040
34 changed files with 257 additions and 192 deletions
|
@ -6,7 +6,7 @@
|
|||
/**
|
||||
* Specify an element or list of elements to trigger the context menu.
|
||||
* If no element is specified, the context menu applies to the entire window
|
||||
* @type {null | HTMLElement | HTMLElement[]}
|
||||
* @type {null | ReadonlyArray<null | HTMLElement>}
|
||||
*/
|
||||
export let target = null;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
/** @type {string[]} */
|
||||
/** @type {ReadonlyArray<string>} */
|
||||
export let selectedIds = [];
|
||||
|
||||
/** Specify the label text */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue