mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(types): upgrade sveld and type constant props as accessors (#742)
This commit is contained in:
parent
fac78ee4aa
commit
54e1e07872
10 changed files with 63 additions and 61 deletions
16
types/NumberInput/NumberInput.d.ts
vendored
16
types/NumberInput/NumberInput.d.ts
vendored
|
@ -122,13 +122,6 @@ export interface NumberInputProps
|
|||
*/
|
||||
translateWithId?: (id: NumberInputTranslationId) => string;
|
||||
|
||||
/**
|
||||
* Default translation ids
|
||||
* @constant
|
||||
* @default { increment: "increment", decrement: "decrement", }
|
||||
*/
|
||||
translationIds?: { increment: "increment"; decrement: "decrement" };
|
||||
|
||||
/**
|
||||
* Set an id for the input element
|
||||
* @default "ccs-" + Math.random().toString(36)
|
||||
|
@ -158,4 +151,11 @@ export default class NumberInput extends SvelteComponentTyped<
|
|||
input: WindowEventMap["input"];
|
||||
},
|
||||
{ label: {} }
|
||||
> {}
|
||||
> {
|
||||
/**
|
||||
* Default translation ids
|
||||
* @constant
|
||||
* @default { increment: "increment", decrement: "decrement", }
|
||||
*/
|
||||
translationIds: { increment: "increment"; decrement: "decrement" };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue