Skip to content

Commit

Permalink
Merge branch 'main' into feat/test-polling
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed Mar 29, 2023
2 parents 0f2cb85 + dc56468 commit 3cd69ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/ee/product-embed/product-sdk/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"extends": ["../../../../packages/.eslintrc.json"],
"extends": ["../../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project":["packages/ee/product-embed/product-sdk/tsconfig.*?.json"]
},
"rules": {
"rxjs/no-async-subscribe": "error",
"rxjs/no-nested-subscribe": "error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class AppComponent implements OnDestroy, AfterViewInit {
Object.keys(SubscribeParamsValidationObject)
);
const subject = this.getEventSubject(eventName);
// eslint-disable-next-line rxjs-angular/prefer-async-pipe
const subscription = subject.subscribe((val: any) => {
callback(val);
});
Expand Down Expand Up @@ -187,18 +188,21 @@ export class AppComponent implements OnDestroy, AfterViewInit {

export interface SubscribeParams {
eventName: SdkEvent;
// eslint-disable-next-line @typescript-eslint/ban-types
callback: Function;
}

const SubscribeParamsValidationObject: SubscribeParams = {
eventName: SdkEvent.CONNECTION,
callback: () => {},
callback: () => {
// Empty function
},
};

export interface InitParams {
token: string;
projectId: ProjectId;
host: String;
host: string;
styles?: {
primaryColor: string;
};
Expand Down

0 comments on commit 3cd69ec

Please sign in to comment.