Skip to content

Commit

Permalink
fix(overlay): use isolatedModules in tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook Johnson authored and Westbrook committed Jan 4, 2021
1 parent b854df6 commit 48d6069
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/overlay/src/popper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import {
popperGenerator,
defaultModifiers,
} from '@popperjs/core/lib/popper-lite';
import { Instance } from '@popperjs/core/lib/types';
import { Placement } from '@popperjs/core/lib/enums';
import type { Instance } from '@popperjs/core/lib/types';
import type { Placement } from '@popperjs/core/lib/enums';

import flip from '@popperjs/core/lib/modifiers/flip.js';
import preventOverflow from '@popperjs/core/lib/modifiers/preventOverflow.js';
Expand All @@ -39,4 +39,5 @@ export const createPopper = popperGenerator({
],
});

export { Instance, Placement, maxSize, applyMaxSize };
export type { Instance, Placement };
export { maxSize, applyMaxSize };
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"experimentalDecorators": true,
"importHelpers": true,
"inlineSources": true,
"isolatedModules": true,
"lib": ["es2017", "dom", "dom.iterable"],
"module": "esNext",
"moduleResolution": "node",
Expand Down

0 comments on commit 48d6069

Please sign in to comment.