diff --git a/src/intercomAPI.ts b/src/intercomAPI.ts index 7b0370a..450f760 100644 --- a/src/intercomAPI.ts +++ b/src/intercomAPI.ts @@ -1,6 +1,6 @@ -export default function(method: string, ...args: Array) { +export default function(...args: [string, ...Array]) { if (window.Intercom) { - window.Intercom.apply(null, [method, args]); + window.Intercom.apply(null, args); } else { console.warn('Intercom not initialized yet'); }