@threlte/core
Advanced tools
Comparing version 6.0.0-next.3 to 6.0.0-next.4
# @threlte/core | ||
## 6.0.0-next.4 | ||
### Patch Changes | ||
- 3a9a26c6: Changed return signature of asyncWritable | ||
## 6.0.0-next.3 | ||
@@ -4,0 +10,0 @@ |
@@ -5,5 +5,3 @@ import { type Writable } from 'svelte/store'; | ||
error: Writable<Error | undefined>; | ||
then: Promise<T>['then']; | ||
catch: Promise<T>['catch']; | ||
}; | ||
} & Promise<T>; | ||
/** | ||
@@ -10,0 +8,0 @@ * ### `asyncWritable` |
@@ -59,9 +59,3 @@ import { writable } from 'svelte/store'; | ||
}); | ||
return { | ||
...store, | ||
error, | ||
promise, | ||
then: promise.then.bind(promise), | ||
catch: promise.catch.bind(promise) | ||
}; | ||
return Object.assign(Object.assign(promise, store), { error, promise }); | ||
}; |
{ | ||
"name": "@threlte/core", | ||
"version": "6.0.0-next.3", | ||
"version": "6.0.0-next.4", | ||
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
266741
5255