Skip to content

Expose Visit data type #60

@JuroUhlar

Description

@JuroUhlar

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions