fix(core): update
This commit is contained in:
33
ts/index.ts
Normal file
33
ts/index.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
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];
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user