mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
12 lines
253 B
TypeScript
12 lines
253 B
TypeScript
|
import type AlgoliaAnalytics from "./insights";
|
||
|
import { isFunction } from "./utils";
|
||
|
|
||
|
export function getVersion(
|
||
|
this: AlgoliaAnalytics,
|
||
|
callback: (version: string) => void
|
||
|
): void {
|
||
|
if (isFunction(callback)) {
|
||
|
callback(this.version);
|
||
|
}
|
||
|
}
|