Switch to external module import syntax.

This commit is contained in:
Lea Hayes
2016-03-08 01:43:40 +00:00
parent 9990c208c8
commit c42c54b827
4 changed files with 10 additions and 6 deletions
@@ -1,6 +1,6 @@
/// <reference path="escape-string-regexp.d.ts"/>
import escapeStringRegexp from 'escape-string-regexp';
import escapeStringRegexp = require('escape-string-regexp');
var inputString: string = '^abc$';
var outputString: string;
+5 -3
View File
@@ -4,7 +4,9 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "escape-string-regexp" {
export default function (str: string): string;
function escapeStringRegexp(str: string): string;
export = escapeStringRegexp;
}