Files
webconfig/ts/index.ts

33 lines
605 B
TypeScript
Raw Normal View History

2018-12-27 22:28:19 +01:00
export interface IWebConfigConstructorOptions {
/**
* the name of the website
*/
name: string;
/**
* description
*/
description: string;
/**
* The Google analytics code
*/
gaCode: string;
/**
* the fullstory organizationCode
*/
fsCode: string;
}
export class WebConfig implements IWebConfigConstructorOptions {
public name: string;
public description: string;
public gaCode: string;
public fsCode: string;
constructor(optionsArg: IWebConfigConstructorOptions) {
Object.keys(optionsArg).map(key => {
this[key] = optionsArg[key];
});
}
}