Browse Source

Change typings to use default export #214

If you're using CommonJS, you will need to `import * as Shuffle from 'shufflejs'`.
If you're using webpack and ts is configured to maintain `import`s, you can use it like `import Shuffle from 'shufflejs'`
Glen Cheney 3 months ago
parent
commit
be410cc17f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      index.d.ts

+ 1
- 1
index.d.ts View File

@@ -3,7 +3,7 @@
3 3
 // Definitions by: Glen Cheney <https://github.com/Vestride>
4 4
 
5 5
 export as namespace Shuffle;
6
-export = Shuffle;
6
+export default Shuffle;
7 7
 
8 8
 interface FilterMode {
9 9
   ALL: string;

Loading…
Cancel
Save