Skip to content

Commit 2d2e90b

Browse files
committed
Strict type for type guard input
1 parent 0cfb380 commit 2d2e90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core-data/src/utils/crdt-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function createYMap< T extends YMapRecord >(
7171
* @param value Value to check.
7272
*/
7373
export function isYMap< T extends YMapRecord >(
74-
value: unknown
74+
value: YMapWrap< T > | undefined
7575
): value is YMapWrap< T > {
7676
return value instanceof Y.Map;
7777
}

0 commit comments

Comments
 (0)