generated from thegrind/laravel-dockerized
13 lines
279 B
TypeScript
13 lines
279 B
TypeScript
import type AlgoliaAnalytics from "./insights";
|
|
import { isFunction } from "./utils";
|
|
|
|
export function getVersion(
|
|
this: AlgoliaAnalytics,
|
|
callback?: (version: string) => void
|
|
): string {
|
|
if (isFunction(callback)) {
|
|
callback(this.version);
|
|
}
|
|
return this.version;
|
|
}
|