Commit fe349ea
fix(tools): fix type errors in create-element template (#2873)
* fix(tools): fix type errors in create-element template
Commit c9bd577 enabled `isolatedDeclarations`, which introduced these
errors in `npm new` generated components:
> TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
> render() {
>
> TS9017: Only const arrays can be inferred with --isolatedDeclarations.
> static readonly styles = [styles];
Fixes #2872
* docs: create dull-stingrays-film.md
* chore: update package.json
---------
Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>1 parent e69f755 commit fe349ea
File tree
3 files changed
+11
-3
lines changed- .changeset
- tools/create-element
- templates/element
3 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments