Currently when implementing a plugin, the interface you are implementing is very unspecific about the types:
interface AnalyticsPluginBase {
name: string;
EVENTS?: any;
config?: any;
initialize?: (...params: any[]) => any;
page?: (...params: any[]) => any;
track?: (...params: any[]) => any;
identify?: (...params: any[]) => any;
loaded?: (...params: any[]) => any;
ready?: (...params: any[]) => any;
}
It would be great to have the specific types here to make implementing plugins easier so we know what the types are.
Currently when implementing a plugin, the interface you are implementing is very unspecific about the types:
It would be great to have the specific types here to make implementing plugins easier so we know what the types are.