I need to map interface properties to objects:
interface Activity {
id: string,
title: string,
body: string,
js
if you would like to keep the interface ability you can do the following, @Nitzan Tomer is right. Interfaces are part of the type system, hence they are only relevant in compile time as they are omitted in the transpiled code.
class Activity {
public id: string = '';
public title: string = '';
public body: string = '' ;
public json: Object = {};
}
let activity = new Activity()
const headers: Array