'Can't create an object of type interface with data collected from ngrx store

I have this interface:

export interface AuthStateInterface {
    isSubmitting: boolean,
    X_HI_CODE: string,
    token: string,
    userId : number,
    roleId: number   
}

And I want to create an object of this interface type with some data collected from the ngrx store within another class with the method initializeValues() that creates the objects as bellow:

  initializeValues(): void {
    const data: AuthStateInterface = {
      isSubmitting: false,
      X_HI_CODE: this.store.pipe(select(xhicodeSelector)),
      token: this.store.pipe(select(tokenSelector)),
      userId : this.store.pipe(select(userIdSelector)),
      roleId: this.store.pipe(select( roleIdSelector)),
    };
    console.log('data', data)
  }

But Visual Studio errors out as you can see on the screenshot bellow: enter image description here

When I hover on the red alert, this is what it says:

enter image description here

I will be greatfull if anyone can help me fix this.



Solution 1:[1]

Certainly! Please take a look at some of these reference implementations for yield farming, in particular, the vault: https://github.com/solana-labs/solana-program-library/tree/master/farms#vaults

As you've correctly noted, the SPL stake-pool program at https://github.com/solana-labs/solana-program-library/tree/master/stake-pool is specific to SOL, and cannot be used to stake other tokens.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jon C