Select to view content in your preferred language

what is the proper TypeScript type for a WatchHandle?

362
1
Jump to solution
09-02-2022 06:55 PM
john_cartwright_noaa
Occasional Contributor

what is the proper TypeScript type for a WatchHandle?

I'm assuming it's 'WatchHandle' but I don't see where to import it.

 

Thanks!

 

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Honored Contributor

It's not a module you can import, but is available in our namespace if you need to type something for it.

let handle: __esri.WatchHandle;

You get the namespace typings automatically when you install @arcgis/core.

View solution in original post

1 Reply
ReneRubalcava
Honored Contributor

It's not a module you can import, but is available in our namespace if you need to type something for it.

let handle: __esri.WatchHandle;

You get the namespace typings automatically when you install @arcgis/core.