Comparing version 0.0.5 to 0.0.6
@@ -135,4 +135,2 @@ /** | ||
/* Excluded from this release type: _Computed */ | ||
/** | ||
@@ -320,6 +318,4 @@ * Creates a computed signal. | ||
*/ | ||
export declare function getComputedInstance<Obj extends object, Prop extends keyof Obj>(obj: Obj, propertyName: Prop): _Computed<Obj[Prop], unknown> | undefined; | ||
export declare function getComputedInstance<Obj extends object, Prop extends keyof Obj>(obj: Obj, propertyName: Prop): Computed<Obj[Prop]>; | ||
/* Excluded from this release type: HistoryBuffer */ | ||
/** | ||
@@ -357,4 +353,2 @@ * Returns true if the given value is an [[Atom]]. | ||
declare type RangeTuple<Diff> = [fromEpoch: number, toEpoch: number, diff: Diff]; | ||
/** | ||
@@ -361,0 +355,0 @@ * Starts a new effect scheduler, executing the effect immediately. |
@@ -5,3 +5,3 @@ { | ||
"description": "A tiny little drawing reactive state management library.", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "tldraw GB Ltd.", | ||
@@ -40,3 +40,3 @@ "homepage": "https://tldraw.dev", | ||
}, | ||
"gitHead": "17100591fb0032b40f35525ff7e06bb1e66d96ca", | ||
"gitHead": "3973df0f68f4205663eb7b655f5e27ac84c03dce", | ||
"module": "dist/index.mjs", | ||
@@ -43,0 +43,0 @@ "source": "src/index.ts", |
@@ -270,3 +270,3 @@ /* eslint-disable prefer-rest-params */ | ||
propertyName: Prop | ||
) { | ||
): Computed<Obj[Prop]> { | ||
// deref to make sure it exists first | ||
@@ -280,3 +280,3 @@ const key = Symbol.for('__signia__computed__' + propertyName.toString()) | ||
} | ||
return inst | ||
return inst as any | ||
} | ||
@@ -283,0 +283,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
299430
5539