Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const pageBuilderSettingsFactory = (context: Object) => {
return class PbSettings extends settingsFactory(context) {
static key = "page-builder";
static classId = "PbSettings";
static collectionName = "Settings";
data: Object;
load: Function;
constructor() {
super();
this.attr("data").model(createPbSettingsModel({ ...context, settings: this }));
}
};
};