mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 05:55:11 +00:00
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;
|
|
}
|