diff --git a/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts b/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts index 18f4398..3ab02ec 100644 --- a/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts +++ b/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts @@ -1,5 +1,5 @@ import { Inject, Injectable } from '@angular/core' -import { FpjsClient, GetOptions } from '@fingerprintjs/fingerprintjs-pro-spa' +import { FpjsClient, FingerprintJSPro } from '@fingerprintjs/fingerprintjs-pro-spa' import { FINGERPTINTJS_PRO_ANGULAR_SETTINGS_TOKEN } from './tokens/fingerprintjs-pro-angular-settings-token' import { IFingerprintjsProSettings } from './interfaces/i-fingerprintjs-pro-settings' import { packageVersion } from './version' @@ -53,7 +53,10 @@ export class FingerprintjsProAngularService { this.fingerprintJsClient = new FpjsClient(clientOptions) this.fingerprintJsClientInitPromise = this.fingerprintJsClient.init() } - async getVisitorData(options?: GetOptions, ignoreCache?: boolean) { + async getVisitorData( + options?: FingerprintJSPro.GetOptions, + ignoreCache?: boolean + ) { await this.fingerprintJsClientInitPromise return this.fingerprintJsClient.getVisitorData(options, ignoreCache) }