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:
npm install @svar-ui/svelte-corenpm install @svar-ui/svelte-gridnpm install @svar-ui/svelte-ganttnpm install @svar-ui/svelte-filemanagernpm install @svar-ui/svelte-filternpm 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.