marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

Expose detach() in .d.ts typings #314

Open FirstVertex opened 3 years ago

FirstVertex commented 3 years ago

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();