Closed vbfox closed 2 years ago
Small proposal to export the types from the root to get the same experience as what was available on the DefninitelyTyped protivided definitions.
This is currently doable by importing the file directly, but it would give a bit better dev-XP:
import { useMediaQuery } from 'react-responsive'; import { MediaQueryAllQueryable } from 'react-responsive/src/types'; // vs import { useMediaQuery, MediaQueryAllQueryable } from 'react-responsive';
Thanks, @vbfox 🙏🏻 That's definitely more ergonomic.
Small proposal to export the types from the root to get the same experience as what was available on the DefninitelyTyped protivided definitions.
This is currently doable by importing the file directly, but it would give a bit better dev-XP: