CaliStyle / ng-intercom

Angular 7+ Wrapper for Intercom.com
MIT License
54 stars 46 forks source link

Type mistmatch #35

Closed naguibihab closed 6 years ago

naguibihab commented 6 years ago

Following the tutorial in the README, I added in my ngOnInit:

        this.intercom.boot({
            app_id: 'my-app-id',
                // Supports all optional configuration.
            widget: {
                "activator": "#intercom" 
            }
        });

And I got a TS error:

ERROR in src/app/components/app/index.ts(87,22): error TS2345: Argument of type '{ app_id: string; widget: { "activator": string; }; }' is not assignable to parameter of type 'BootInput'.
  Type '{ app_id: string; widget: { "activator": string; }; }' is not assignable to type 'UserWithUid & DefaultBootInput & Any'.
    Type '{ app_id: string; widget: { "activator": string; }; }' is not assignable to type 'UserWithUid'.
      Property 'user_id' is missing in type '{ app_id: string; widget: { "activator": string; }; }'.
wbhob commented 6 years ago

Fixed in 5e881c7