Added type declaration to styles property for all components (#829)

* Updated the plop template with type for styles property
This commit is contained in:
Philipp Sonntag
2022-07-19 14:27:39 +02:00
committed by GitHub
parent 00f98cc505
commit 3fb4cba856
49 changed files with 98 additions and 50 deletions

View File

@@ -4,6 +4,7 @@ import { styleMap } from 'lit/directives/style-map.js';
import QrCreator from 'qr-creator';
import { watch } from '../../internal/watch';
import styles from './qr-code.styles';
import type { CSSResultGroup } from 'lit';
/**
* @since 2.0
@@ -13,7 +14,7 @@ import styles from './qr-code.styles';
*/
@customElement('sl-qr-code')
export default class SlQrCode extends LitElement {
static styles = styles;
static styles: CSSResultGroup = styles;
@query('canvas') canvas: HTMLElement;