Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Visit data type #60

Open
JuroUhlar opened this issue Feb 21, 2023 · 0 comments
Open

Expose Visit data type #60

JuroUhlar opened this issue Feb 21, 2023 · 0 comments

Comments

@JuroUhlar
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant