devstar插件
This commit is contained in:
12
node_modules/search-insights/lib/_getVersion.ts
generated
vendored
Normal file
12
node_modules/search-insights/lib/_getVersion.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user