Skip to content

Commit 9f1edd3

Browse files
committed
typescript: do not export default
1 parent f7ff3a7 commit 9f1edd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ interface BScrollStatic {
150150
declare const BScroll: BScrollStatic;
151151

152152
declare module 'better-scroll' {
153-
export default BScroll;
153+
export = BScroll;
154154
}

types/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import BScroll from 'better-scroll';
1+
import * as BScroll from 'better-scroll';
22

33
const BScroll1 = new BScroll('#wrapper')
44
const BScroll2 = new BScroll('#wrapper', { scrollX: false, scrollY: false })

0 commit comments

Comments
 (0)