blob: 0cf23d9a024134b608f7910874265c9aa9048f5d [file] [log] [blame]
import {Car} from './car';
const serverResponse = `{"make": "Porsche"}`;
const car = Car.create(JSON.parse(serverResponse));
const el: HTMLDivElement = document.createElement('div');
el.innerText = `Car from server: ${car.make}`;
el.className = 'ts1';
document.body.appendChild(el);