The Analytiq SDK ships with full TypeScript definitions built in. You do NOT need to install
@types/analytiq — it doesn’t exist because types are already included.Step 1 — Install the SDK
Step 2 — All 5 functions with TypeScript types
Step 3 — In a React + TypeScript component
TypeScript type definitions
Here are all the types you can import:Step 4 — Verify it’s working
TypeScript will show you errors at compile time if:- You pass a non-string
userIdtoidentify() - You pass an object value to
EventProperties(only primitives allowed) - You forget the
namefield inBatchEvent