Skip to content

Commit 936f8ce

Browse files
committed
fix: type errors
1 parent 281f7d9 commit 936f8ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cemnama",
33
"description": "a Custom Element Manifest Viewer component developed in web components",
44
"author": "Amirhossein Alibakhshi",
5-
"version": "0.0.0-alpha-2",
5+
"version": "0.0.0-alpha-3",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/amir78729/custom-element-manifest-viewer.git"

src/custom-element-manifest-viewer/custom-element-manifest-viewer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,11 @@ export class CustomElementManifestViewer extends LitElement {
180180
? removeBackticks(property.type.text)
181181
: 'string',
182182
description: property?.description,
183+
// @ts-expect-error
183184
defaultValue:
184185
(property?.default &&
185186
removeBackticks(removeQuotes(property.default))) ||
186-
this.propertyKnobs[property.name],
187+
this.propertyKnobs?.[property.name],
187188
// @ts-expect-error
188189
onChange: (e: Event) => {
189190
const input = e.target as HTMLInputElement;

0 commit comments

Comments
 (0)