Skip to content

Commit

Permalink
Fixing to work with more recent versions of TypeScript (#243)
Browse files Browse the repository at this point in the history
Without this change I get this error from TypeScript:

```
Module '"node_modules/css-element-queries/src/ResizeSensor"' has no default export.

24 import ResizeSensor from "css-element-queries/src/ResizeSensor";
          ~~~~~~~~~~~~
```
  • Loading branch information
Pauan authored and marcj committed Oct 16, 2018
1 parent e1f3e04 commit 5aa2dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResizeSensor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ declare class ResizeSensor {
detach(callback: Function): void;
}

export = ResizeSensor;
export default ResizeSensor;

0 comments on commit 5aa2dfc

Please sign in to comment.