No overload matches this call. Overload 1 of 5, '(next: null | undefined, error: (error: any) => void, complete?: (() => void) | undefined): Subscript

No overload matches this call. Overload 1 of 5, '(next: null | undefined, error: (error: any) => void, complete?: (() => void) | undefined): Subscript

我在访问来自变量的分配响应时收到以下错误消息。

代码:

错误:

No overload matches this call.
  Overload 1 of 5, '(next: null | undefined, error: (error: any) => void, complete?: (() => void) | undefined): Subscription', gave the following error.
    Argument of type '(response: Employee[]) => void' is not assignable to parameter of type 'null | undefined'.
      Type '(response: Employee[]) => void' is not assignable to type 'null'.
  Overload 2 of 5, '(next?: ((value: Employee) => void) | undefined, error?: ((error: any) => void) | undefined, complete?: (() => void) | undefined): Subscription', gave the following error.
    Argument of type '(response: Employee[]) => void' is not assignable to parameter of type '(value: Employee) => void'.
      Types of parameters 'response' and 'value' are incompatible.
        Type 'Employee' is missing the following properties from type 'Employee[]': length, pop, push, concat, and 26 more.ts(2769)

我发现了这里的错误。服务方法 return 类型与此不匹配。