Can anybody help me to unable this rule in tslint file? I have such message:
"TS2322: Type 'WebSocketAction' is not assignable to type 'boolean'."
export class WebSocketData {
public authorization: string;
constructor(
public action: WebSocketAction = null,
public data: any = null,
token: string = null
) {
this.authorization = token ? `Bearer ${token}` : null;
}
public isValid(): boolean {
return this.data && this.action;
}
}
