Select to view content in your preferred language

Even type of view.on()

92
4
Jump to solution
Monday
ForrestLin
Occasional Contributor II

I use Angular/TypeScript and need to know the type of Events with view.on() like:

view.on("click", async (event) => { ..... });
view.on("immediate-click", async (event) => { ..... });
 
ForrestLin_1-1723471807673.png

Where/how can I find the definition of the types in ArcGIS Maps SDK for TypeScript?

Thanks.

Forrest

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor II

All the TS Typings are defined by the public documentation. debounce for example depends on the function being debounced, it just takes a generic function

https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#debounce

View solution in original post

0 Kudos
4 Replies
ReneRubalcava
Frequent Contributor II

These are available under the __esri TS namespace

ReneRubalcava_0-1723475603267.png

 

0 Kudos
ForrestLin
Occasional Contributor II

@ReneRubalcava 

Thank you!

Where/how can I find the definition of the type like:

promiseUtils.debounce(async (event) => { ..... });
 

 

0 Kudos
ReneRubalcava
Frequent Contributor II

All the TS Typings are defined by the public documentation. debounce for example depends on the function being debounced, it just takes a generic function

https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#debounce

0 Kudos
ForrestLin
Occasional Contributor II

@ReneRubalcava 

Thank you!

0 Kudos