css-element-queries icon indicating copy to clipboard operation
css-element-queries copied to clipboard

Expose detach() in .d.ts typings

Open FirstVertex opened this issue 4 years ago • 0 comments

We have a detach() method but it is not exposed in the lib's typings.

Let's expose detach() so that transient usage of this can be properly disposed.

Currently I have to use casts to unknown and any to get at the detach from Typescript:

(<any>(<unknown>ElementQueries)).detach();

FirstVertex avatar May 18 '21 14:05 FirstVertex