Answer the question
In order to leave comments, you need to log in
Why writes that types are incompatible?
There is an interface
export interface Applications {
"date": string,
"firm": string,
"full name": string,
"phone": string,
"comment": string,
"code": string
}
this.body = new HttpParams({
fromObject: this.variable
})
Type 'Applications' is not assignable to type '{ [param: string]: string | number | boolean | readonly (string | number | boolean)[]; }'.
Answer the question
In order to leave comments, you need to log in
You continue to read that message:
Type 'Applications' is not assignable to type '{ [param: string]: string | number | boolean | readonly (string | number | boolean)[]; }'.
Index signature for type 'string' is missing in type 'Applications'
export type Applications = {
"date": string,
"firm": string,
"full name": string,
"phone": string,
"comment": string,
"code": string
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question