No overload matches this call. Overload 1 of 2, '(observerOrNext?: Partial<Observer<object>> | ((value: object) => void) | undefined): Subscription', gave the following error. Argument of type '(detailData: DetailDataInterface) => void' is not assignable to parameter of type 'Partial<Observer<object>> | ((value: object) => void) | undefined'. Type '(detailData: DetailDataInterface) => void' is not assignable to type '(value: object) => void'. Types of parameters 'detailData' and 'value' are incompatible. Type '{}' is missing the following properties from type 'DetailDataInterface': vehicleDetailData, eventDetailData Overload 2 of 2, '(next?: ((value: object) => void) | null | undefined, error?: ((error: any) => void) | null | undefined, complete?: (() => void) | null | undefined): Subscription', gave the following error. Argument of type '(detailData: DetailDataInterface) => void' is not assignable to parameter of type '(value: object) => void'. Types of parameters 'detailData' and 'value' are incompatible. Type 'object' is not assignable to type 'DetailDataInterface'.(2769)