mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-31 11:40:47 +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;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/// <reference path="format-unicorn-safe.d.ts"/>
|
||||
|
||||
import formatUnicorn from 'format-unicorn/safe';
|
||||
import formatUnicorn = require('format-unicorn/safe');
|
||||
|
||||
// Safe version
|
||||
var outputString: string;
|
||||
|
||||
+3
-1
@@ -5,6 +5,8 @@
|
||||
|
||||
declare module 'format-unicorn/safe' {
|
||||
|
||||
export default function (str: string, replacements: { }): string;
|
||||
function formatUnicornSafe(str: string, replacements: { }): string;
|
||||
|
||||
export = formatUnicornSafe;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user