添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Props.something is watchable

What is actually happening?

Error When Watching Props.something

I Am Using vscode.

Error Showing In vscode:

No overload matches this call.
 Overload 1 of 2, '(source: WatchSource<unknown>, cb: WatchCallback<unknown, unknown>, options?: WatchOptions<false> | undefined): StopHandle', gave the following error.
   Argument of type '({ [key: string]: any; } | undefined)[]' is not assignable to parameter of type 'WatchSource<unknown>'.
     Type '({ [key: string]: any; } | undefined)[]' is not assignable to type '() => unknown'.
       Type '({ [key: string]: any; } | undefined)[]' provides no match for the signature '(): unknown'.
 Overload 2 of 2, '(sources: readonly WatchSource<unknown>[], cb: WatchCallback<readonly unknown[], readonly unknown[]>, options?: WatchOptions<false> | undefined): StopHandle', gave the following error.
   Type '{ [key: string]: any; } | undefined' is not assignable to type 'WatchSource<unknown>'.
     Type 'undefined' is not assignable to type 'WatchSource<unknown>'.Vetur(2769)