mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
test: fix type errors
This commit is contained in:
parent
f69b2f15b5
commit
f25a23dd26
10 changed files with 29 additions and 22 deletions
|
@ -8,16 +8,18 @@
|
|||
active: "Submitting...",
|
||||
finished: "Success",
|
||||
inactive: "Cancelling...",
|
||||
};
|
||||
dormant: "Submit",
|
||||
} as const satisfies Record<State, string>;
|
||||
|
||||
const stateMap = {
|
||||
active: "finished",
|
||||
inactive: "dormant",
|
||||
finished: "dormant",
|
||||
};
|
||||
dormant: "inactive",
|
||||
} as const satisfies Record<State, State>;
|
||||
|
||||
let timeout = undefined;
|
||||
let state: State = "dormant";
|
||||
let timeout: NodeJS.Timeout | undefined = undefined;
|
||||
let state: State= "dormant";
|
||||
|
||||
function reset(incomingState?: State) {
|
||||
if (typeof timeout === "number") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue