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

feat(typings): export ElementQueries typings #267

Closed ThibaudAV closed 5 years ago

ThibaudAV commented 5 years ago

Add the typing of ElementQueries

This allows to use this in ts :

import { ElementQueries } from 'css-element-queries';
...
ElementQueries.listen();
ElementQueries.init();
ThibaudAV commented 5 years ago

A little up for this PR 🙃 cc: @marcj

indfnzo commented 5 years ago

Hey @marcj, we need this PR merged too. The last PR only added ResizeSensor to the typings, so our typescript builds started complaining about missing exports (since it now detects a .d.ts file).

Would be great if you can get this tagged soon!

marcj commented 5 years ago

Ops, overlooked that one, sorry. Merged, thanks!

indfnzo commented 5 years ago

Thank you!