# @lwc/types

> This package provides type definitions for LWC projects written in TypeScript.

Latest version **9.4.3** (published 2026-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lwc/types
pnpm add @lwc/types
yarn add @lwc/types
bun add @lwc/types
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.4.3 |
| Published | 2026-09-02 |
| First published | 2024-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=16.6.0 |
| Dependencies | 1 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1791 |
| Maintainers | lwc-admin, caridy, jye-sf, ravi.jayaramappa, jodarove, abdulsattar, rax-it1, lpomerleau |
| Keywords | lwc, types, typescript, typings |

## Links

- npm: https://www.npmjs.com/package/@lwc/types
- Repository: https://github.com/salesforce/lwc
- Homepage: https://lwc.dev
- Issues: https://github.com/salesforce/lwc/issues
- npm.io page: https://npm.io/package/@lwc/types

## Dependencies (1)

- [@lwc/engine-core](https://npm.io/package/@lwc/engine-core.md) 9.4.3

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 9.4.3 (latest) — 2026-09-02
- 9.4.6-alpha.1 (canary) — 2026-09-22
- 9.3.10 (winter27) — 2026-09-21
- 9.1.1 (summer26) — 2026-03-25
- 8.16.5 (summer25) — 2025-05-05
- 8.10.3 (spring25) — 2025-01-09
- 7.1.5 (winter25) — 2024-10-10
- 7.0.1-alpha.0 (next) — 2024-06-21
- 9.4.6-alpha.0 — 2026-09-11
- 9.3.9 — 2026-09-09
- 9.3.8 — 2026-09-03
- 9.4.2 — 2026-09-01
- 9.3.7 — 2026-08-13
- 9.4.1 — 2026-08-12
- 9.4.0 — 2026-08-10
- … 131 more at https://npm.io/package/@lwc/types/versions

## README

# @lwc/types

This package provides type definitions for LWC projects written in TypeScript.

## Usage

> [!IMPORTANT]
> If you use the `lwc` package in your project, then HTML and CSS imports will work without any configuration required.

To enable importing [templates](https://lwc.dev/guide/html_templates) or [stylesheets](https://lwc.dev/guide/css), simply import this package once, from anywhere in your project.

```ts
// ./types/global.d.ts
import '@lwc/types';

// my-component.ts
import stylesheet from './my-component.css';
import template from './my-component.html';
```

## Module Definitions

This package provides module definitions for HTML and CSS files, so that they can be imported in LWC component script files.

---
_Source: https://npm.io/package/@lwc/types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
