webconfig/ts/index.ts
2018-12-27 22:28:19 +01:00

33 lines
605 B
TypeScript

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];
});
}
}