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

fix: correct types declarations align to source code

Open JounQin opened this issue 5 years ago • 1 comments

The following codes are actually incorrect but current types won't complain about it.

import { ElementQueries } from 'css-element-queries/src/ElementQueries'
import { ResizeSensor } from 'css-element-queries/src/ResizeSensor'

They should be like the following:

// by default
import * as ElementQueries from 'css-element-queries/src/ElementQueries'
import * as ResizeSensor from 'css-element-queries/src/ResizeSensor'

// or with `esModuleInterop: true` enabled
import ElementQueries from 'css-element-queries/src/ElementQueries'
import ResizeSensor from 'css-element-queries/src/ResizeSensor'

JounQin avatar Jul 21 '20 04:07 JounQin

a nice feature to be validated I think.

ghost avatar Feb 06 '22 09:02 ghost