mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Switch to external module import syntax.
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user