https://i.sstatic.net/cVVSs.png
In the code snippet below, I have created an interface called ClientState1. Now, I am attempting to define a constant named descriptionJobDetails with the type ClientState1, specifically for IJobDetails. However, I am encountering an error as illustrated in the figure.
export interface ClientState1<State> {
state: State;
loading: boolean;
error: any;
}
export interface IJobDetails {
id: number;
aboutTheCompany: string;
}
const descriptionJobDetails: ClientState1<IJobDetails> = { state: null, loading: false, error: '' };