From 12e0a77b8dfffcf8d74bce5cccfd64767382a60a Mon Sep 17 00:00:00 2001 From: Wooseok Yang Date: Mon, 29 Mar 2021 17:54:40 +0900 Subject: [PATCH] Update strings.d.ts Add a type of RegExp for replace --- danfojs-node/types/core/strings.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danfojs-node/types/core/strings.d.ts b/danfojs-node/types/core/strings.d.ts index 22bfb110..06eb778f 100644 --- a/danfojs-node/types/core/strings.d.ts +++ b/danfojs-node/types/core/strings.d.ts @@ -70,7 +70,7 @@ export class Str { * @params {replaceValue: String | Character} string to replace with * @return {array} */ - replace(searchValue?: string, replaceValue?: string): any[]; + replace(searchValue?: string | RegExp, replaceValue?: string): any[]; /** * Returns a new string with a specified number of copies of an existing string * @params {num: Integer} Number of times to repeat