Skip to content

Commit ca2a0da

Browse files
committed
chore(async-stack): make prop type generic optional
1 parent eb3a404 commit ca2a0da

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/clean-carpets-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@svelte-put/async-stack': patch
3+
---
4+
5+
make Resolved generic param to StackItemProps optional

packages/async-stack/src/types.public.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Component, ComponentProps } from 'svelte';
33

44
import type { StackItem } from './stack-item.svelte.js';
55

6-
export interface StackItemProps<Resolved> {
6+
export interface StackItemProps<Resolved = undefined> {
77
/** the stack item instance injected by the stack */
88
item: Omit<StackItem<Component<StackItemProps<Resolved>>, Resolved>, '#internals'>;
99
}

0 commit comments

Comments
 (0)