Skip to content

Commit 64d65f5

Browse files
authored
Reflect the real return's type of from
1 parent 5b5d724 commit 64d65f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • content/references/api-reference/reactive-utilities

content/references/api-reference/reactive-utilities/from.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function from<T>(
99
fn: (v: T) => void
1010
) => (() => void) | { unsubscribe: () => void };
1111
}
12-
): () => T;
12+
): () => T | undefined;
1313
```
1414

1515
A helper to make it easier to interop with external producers like RxJS observables or with Svelte Stores. This basically turns any subscribable (object with a subscribe method) into a Signal and manages subscription and disposal.

0 commit comments

Comments
 (0)