It would be nice if the library could expose the Visit data type.
I want to do something like
/**
* @param { import('@fingerprintjs/fingerprintjs-pro-server-api').Visit} visitData - does't work
*/
function checkSomethingInVisitData (visitData) {
console.log(visitData.ipLocation.city);
}
Where Visit corresponds to the components.schemas.Visit in the provided index.d.ts. But I can't because Visit is not exposed directly.
Adding declare type Visit = components['schemas']['Visit']; and removing [] brackets from Visit in the schema might be sufficient. Thank you!
It would be nice if the library could expose the
Visitdata type.I want to do something like
Where
Visitcorresponds to thecomponents.schemas.Visitin the providedindex.d.ts. But I can't becauseVisitis not exposed directly.Adding
declare type Visit = components['schemas']['Visit'];and removing[]brackets fromVisitin the schema might be sufficient. Thank you!