Skip to content

Commit b889058

Browse files
author
ryan.chu
committed
refactor(core): refactor WatchingYouTargetType
1 parent 3ee017c commit b889058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type WatchingYouRender = (
1717

1818
type WatchingYouWatcher = string | Element;
1919
type WatchingYouTarget = string | Element;
20-
type WatchingYouTargetType = 'mouse' | 'dom' | 'input' | 'textarea';
20+
type WatchingYouTargetType = keyof typeof TargetPlugins;
2121
type WatchingYouPower = number | { x?: number; y?: number };
2222
interface WatchingYouOptions {
2323
target?: WatchingYouTarget;

0 commit comments

Comments
 (0)