Replies: 2 comments 4 replies
-
Using lit/examples/nextjs/src/simple-greeter.ts Lines 55 to 70 in dd74c60 Partial<SimpleGreeter> could be better where you can specify just the public property types there and even make stuff non-optional.
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, I followed everything the docs mentions about how to correctly publish a Lit components package but I cannot just use my custom element in my React app. My components name is
connect-kit
but my IDE always complains withProperty 'connect-kit' does not exist on type 'JSX.IntrinsicElements'.
. Although, it works. I can even doconst myElement = document.createElement('connect-kit');
and it will be typed. But vscode stills complain about having<connect-kit />
. Any ideas ?I correctly exported the
d.ts
in mypackage.json
as well.Beta Was this translation helpful? Give feedback.
All reactions