0
は、ここでのコードは次のとおりです。typescriptですし、不変のjsインターフェイス
import {User} from "../../models/user";
import {Map} from "immutable";
export interface State extends Map<string, any> {
user: User,
token: string,
};
const initialState: State = Map<string, any>({
user: null,
token: null,
});
が、私はこのエラーしている:私はそれをどのように
Error:(11, 7) TS2322:Type 'Map<string, any>' is not assignable to type 'State'.
Property 'user' is missing in type 'Map<string, any>'.
を修正できますか?