---
title: TypeScript
url: 'https://docs.geens.com/geens-partners/geens-sdk/browser-sdk/typescript'
markdown: 'https://docs.geens.com/geens-partners/geens-sdk/browser-sdk/typescript.md'
date: '2026-12-03'
description: "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(s…"
---

# TypeScript

[](#)# 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:

```typescript
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)
  );
}
```

---

## Navigation

- Parent: [Browser SDK](https://docs.geens.com/geens-partners/geens-sdk/browser-sdk.md)
- Previous: [Callbacks and errors](https://docs.geens.com/geens-partners/geens-sdk/browser-sdk/callbacks-and-errors.md)
- Next: [Authentication](https://docs.geens.com/geens-partners/geens-sdk/browser-sdk/authentication.md)
