mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00: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:
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