-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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!
Metadata
Metadata
Assignees
Labels
No labels