TypeScript

Import the constructor from the same package root. You can also use it as the instance type. Some callback payloads currently use any in the declarations; annotate your application callbacks when using strict TypeScript settings:

import GeensSdk from '@geens_npo/browser-sdk';

function loadItems(sdk: GeensSdk): void {
  sdk.getItem(
    [123],
    {},
    (items: unknown) => console.log(items),
    (error: unknown) => console.error(error)
  );
}