Hello everyone!
I'm in need of some assistance. I am trying to test my service tree with a specific structure.
Here is an overview of my test:
describe(`Service selector`, () => {
describe(`getCurrentServiceTree`, () => {
it(`should build the generic service tree`, () => {
// Test scenarios and expected results...
});
});
});
I am unsure if the issue lies with TypeScript, RxJS, or my code itself :(
When I hover over getCurrentServiceTree, I see the following:
(alias) getCurrentServiceTree(state: IStore): TreeElement[] import getCurrentServiceTree
I am uncertain about using Partial<T>
. When I hover over it, I encounter this error message:
[ts] Argument of type '() => any' is not assignable to parameter of type 'IStore'. The property 'ui' is missing in type '() => any'.
// Code block related to getting current service tree...
export const getCurrentServiceTree = createSelector(
//functions and logic...
);
Can someone please help me understand how to resolve this issue?