Skip to content

Commit

Permalink
Export Plug interface
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos authored Apr 30, 2020
1 parent bfaefbc commit fea836e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
EventInfo,
JsonValue,
} from '@croct-tech/sdk';
import {Plug, GlobalPlug} from './plug';

export {
Sdk,
Expand All @@ -40,6 +41,7 @@ export {
EvaluationError,
ExpressionError,
JsonValue,
Plug,
};

export {default} from './plug';
export default new GlobalPlug();
4 changes: 1 addition & 3 deletions src/plug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface Plug {
unplug(): Promise<void>;
}

class GlobalPlug implements Plug {
export class GlobalPlug implements Plug {
private instance?: SdkFacade;

public plug(configuration: Configuration): void {
Expand Down Expand Up @@ -126,5 +126,3 @@ class GlobalPlug implements Plug {
}
}
}

export default new GlobalPlug();

0 comments on commit fea836e

Please sign in to comment.