File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @svelte-put/async-stack ' : patch
3+ ---
4+
5+ add JSDocs for ` StackItemState `
Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ export type StackItemInstanceConfig<
4646 timeout : number ;
4747} ;
4848
49+ /**
50+ * - 'idle': stack item is active with no timeout, its component is rendered
51+ * - 'elapsing': stack item is active with a timeout that is currently counting down
52+ * - 'paused': stack item is active with a timeout that is paused
53+ * - 'timeout': stack item has reached its timeout and has been resolved
54+ * - 'resolved': stack item has been resolved (popped from the stack, its component unmounted)
55+ */
4956export type StackItemState = 'idle' | 'elapsing' | 'paused' | 'timeout' | 'resolved' ;
5057
5158export type StackItemByVariantPushConfig <
You can’t perform that action at this time.
0 commit comments