@cather/kwc-types
v1.0.0
Published
This package provides type definitions for KWC projects written in TypeScript.
Downloads
3
Maintainers
Readme
@cather/kwc-types
This package provides type definitions for KWC projects written in TypeScript.
Usage
[!IMPORTANT] If you use the
kwcpackage 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 '@cather/kwc-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 KWC component script files.
