[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:
Leonard Thieu
2018-02-26 12:02:12 -05:00
committed by Andy
parent 786fae6a7f
commit 28a3b11694
3 changed files with 11 additions and 3 deletions

View File

@@ -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;

View File

@@ -0,0 +1,4 @@
import SimpleBar = require('simplebar');
// $ExpectType typeof SimpleBar
SimpleBar;

View File

@@ -19,6 +19,7 @@
},
"files": [
"index.d.ts",
"simplebar-tests.ts"
"simplebar-tests.ts",
"test/module-tests.ts"
]
}
}