mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Update colors.d.ts to work with TypeScript import
The file lacked a module delcaration, so it would not work with the following code:
import colors = require("colors");
The `interface` does not belong in the `module` as it's global (applying to `String` and not scoped.)
This commit is contained in:
1 parent
48ad0ea753
commit
2f7069a43b
1 file changed
+4
Vendored
+4
@@ -3,6 +3,10 @@
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "colors" {
|
||||
export function setTheme(theme:any):any;
|
||||
}
|
||||
|
||||
interface String {
|
||||
bold:string;
|
||||
italic:string;
|
||||
|
||||
Reference in new issue
Block a user