We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c853a1 commit c5b3f62Copy full SHA for c5b3f62
packages/svelte/src/internal/client/proxy/proxy.js
@@ -102,10 +102,10 @@ function unwrap(value, already_unwrapped = new Map()) {
102
/**
103
* @template T
104
* @param {T} value
105
- * @returns {Record<string | symbol, any>}
+ * @returns {T}
106
*/
107
export function unstate(value) {
108
- return unwrap(/** @type {StateObject} */ (value));
+ return /** @type {T} */ (unwrap(/** @type {StateObject} */ (value)));
109
}
110
111
0 commit comments