Skip to content

Commit

Permalink
weird, need IConnectedService reference to build via lerna.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Laird-McConnell committed Aug 27, 2018
1 parent 2c83a31 commit 9844dc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/botframework-config/src/botConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as uuid from 'uuid';
import { BotConfigurationBase } from './botConfigurationBase';
import * as encrypt from './encrypt';
import { ConnectedService } from './models';
import { IBotConfiguration, IDispatchService, ServiceTypes } from './schema';
import { IBotConfiguration, IConnectedService, IDispatchService, ServiceTypes } from './schema';

interface internalBotConfig {
location?: string;
Expand All @@ -19,11 +19,11 @@ interface internalBotConfig {
// This class adds loading and saving from disk and encryption/decryption semantics on top of BotConfigurationBase
export class BotConfiguration extends BotConfigurationBase {

protected internal: internalBotConfig = {};
private internal: internalBotConfig = {};

public static fromJSON(source: Partial<IBotConfiguration> = {}): BotConfiguration {
let { name = '', description = '', version = '2.0', secretKey = '', services = [] } = source;
services = services.slice().map(BotConfigurationBase.serviceFromJSON);
services = <IConnectedService[]>services.slice().map(BotConfigurationBase.serviceFromJSON);
const botConfig = new BotConfiguration();
Object.assign(botConfig, { services, description, name, version, secretKey });
return botConfig;
Expand Down

0 comments on commit 9844dc0

Please sign in to comment.