Discussion for angular (2+) - need help? create a stackblitz with your issue to get help faster using this template: https://stackblitz.com/fork/angular-issue-repro2
declare global { interface Window { HubSpotConversations: object; } }
window.HubSpotConversations = {};
describe('HubSpotConversationsService', () => {
let service: HubSpotConversationsService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(HubSpotConversationsService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@haneatic this is the model:
export interface User {
username: string;
wordcount: number;
fontSize: number;
fontFamily: number;
}
//other file
import { User } from './user.model';
export interface Status {
status: User;
}and this is the obj is trying to type:
status: {
username: '',
wordcount: 0,
fontSize: 0,
fontFamily: 0,
},