-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error trying to access layer attributes with Typescript #945
Comments
The return type of
|
Alright, this works now thanks. But there is no documentation about how to use Typescript with the lib? |
I created a discussions post to create a documentation of the "confusing" Typescript points #949. But there should not much of this. @ryan-morris maybe you have example repo |
Ok thanks. I appreciate the effort, I'll take a look and try to help if I found something. The main question of this issue has been resolved, so I'll close it. |
@Falke-Design, @lucas-santosP the closest I would have to an example would be this link, posted in #790 . It's a little angular specific but the geoman interactions should apply as basic typescript implementation. |
Hi, I'm trying to listen to the
pm:create
event using Typescript, but when I try to access any attribute of thelayer
like this:I got this error:
I tried the same code on js and works fine... So this is expected behavior because the lib doesn't have complete Typescript support yet or I'm doing something wrong?
Package versions:
The text was updated successfully, but these errors were encountered: