mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
[simplebar] Allow SimpleBar to be imported as a module. (#23911)
* [simplebar] Allow SimpleBar to be imported as a module. * [simplebar] Add missing author.
This commit is contained in:
5
types/simplebar/index.d.ts
vendored
5
types/simplebar/index.d.ts
vendored
@@ -1,9 +1,12 @@
|
||||
// Type definitions for simplebar.js 2.4
|
||||
// Project: https://github.com/Grsmto/simplebar
|
||||
// Definitions by: Leonard Thieu <https://github.com/leonard-thieu>
|
||||
// Definitions by: Gregor Woiwode <https://github.com/gregonnet>, Leonard Thieu <https://github.com/leonard-thieu>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
export as namespace SimpleBar;
|
||||
export = SimpleBar;
|
||||
|
||||
declare class SimpleBar {
|
||||
static removeObserver(): void;
|
||||
|
||||
|
||||
4
types/simplebar/test/module-tests.ts
Normal file
4
types/simplebar/test/module-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import SimpleBar = require('simplebar');
|
||||
|
||||
// $ExpectType typeof SimpleBar
|
||||
SimpleBar;
|
||||
@@ -19,6 +19,7 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"simplebar-tests.ts"
|
||||
"simplebar-tests.ts",
|
||||
"test/module-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user