mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 12:49:20 +00:00
test(number-input): assert updated value type
This commit is contained in:
parent
657d01c47c
commit
c54a98e193
1 changed files with 4 additions and 1 deletions
|
@ -1,11 +1,14 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { NumberInput, NumberInputSkeleton } from "../types";
|
import { NumberInput, NumberInputSkeleton } from "../types";
|
||||||
|
import type { NumberInputProps } from "../types/NumberInput/NumberInput.svelte";
|
||||||
|
|
||||||
|
let value: NumberInputProps["value"] = null;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<NumberInput
|
<NumberInput
|
||||||
label="Clusters"
|
label="Clusters"
|
||||||
on:change="{(e) => {
|
on:change="{(e) => {
|
||||||
console.log(e.detail); // number
|
console.log(e.detail); // null | number
|
||||||
}}"
|
}}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue