@lwc/types
TypeScript icon, indicating that this package has built-in type declarations

8.7.0 • Public • Published

@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 or stylesheets, simply import this package once, from anywhere in your project.

// ./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.

Package Sidebar

Install

npm i @lwc/types

Homepage

lwc.dev

Weekly Downloads

1,394

Version

8.7.0

License

MIT

Unpacked Size

9.4 kB

Total Files

4

Last publish

Collaborators

  • abhagta-sfdc
  • rax-it1
  • divmain
  • lwc-admin
  • caridy
  • pmdartus
  • ekashida
  • kevinv11n
  • jye-sf
  • rui.qiu
  • ravi.jayaramappa
  • jodarove
  • abdulsattar
  • nolanlawson
  • jmsjtu