mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
Add escape-string-regexp type definition.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/// <reference path="escape-string-regexp.d.ts"/>
|
||||
|
||||
import escapeStringRegexp from 'escape-string-regexp';
|
||||
|
||||
var inputString: string = '^abc$';
|
||||
var outputString: string;
|
||||
|
||||
outputString = escapeStringRegexp(inputString);
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// Type definitions for escape-string-regexp
|
||||
// Project: https://github.com/sindresorhus/escape-string-regexp
|
||||
// Definitions by: kruncher <https://github.com/kruncher/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "escape-string-regexp" {
|
||||
|
||||
export default function (str: string): string;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user