SVAR Blog Svelte, Core, Gantt, Datagrid, Filter, Editor

SVAR Svelte Components Now with TypeScript Support

 

Olga Tashlikovich

Sep 19 · 2 min read

SVAR Svelte Components Now with TypeScript Support

TypeScript Support Added

The news is short but important: all SVAR Svelte UI components now support TypeScript – from the basic Core Library to more complex widgets like DataGrid and Gantt chart. Version 2.3 of SVAR Svelte component library brings the official type definitions, making the components API more reliable, consistent, and production-ready.

What TypeScript support means for SVAR Svelte:

  • Better DX: autocomplete, inline hints, and safer code.
  • Type safety: catch errors at compile time, not runtime.
  • Consistency: API reference fully aligned with TypeScript definitions.

Updated Documentation

Alongside TypeScript support, we’ve updated the docs for all SVAR Svelte components:

  • Synced API reference with TypeScript definitions, removing inconsistencies.
  • Improved structure for faster and easier navigation.
  • Polished design to distinguish between SVAR Svelte and React docs.

With this update, we’ve also fixed the known bugs and added small improvements across all SVAR Svelte components.

Get the Update

Install version 2.3 via npm:

Terminal window
npm install @svar-ui/svelte-core
npm install @svar-ui/svelte-grid
npm install @svar-ui/svelte-gantt
npm install @svar-ui/svelte-filemanager
npm install @svar-ui/svelte-filter
npm install @svar-ui/svelte-editor

⚠️ Important: starting from version 2.3 all SVAR Svelte components are moving to @svar-ui namespace. This creates a consistent and unified naming structure for all SVAR components:

  • Before: wx-svelte-core, wx-react-core
  • Now: @svar-ui/svelte-core, @svar-ui/react-core

For backward compatibility we’ll continue publishing the packages under both wx-svelte-* and @svar-ui namespaces until version 3.0, so your existing project won’t break.

You can also find the updates on SVAR’s GitHub.

Next Step

We’re now working on adding TypeScript support to SVAR React components.