From 72971456beb066da665aafe2a48c7588fb38902f Mon Sep 17 00:00:00 2001 From: ocavue Date: Sat, 12 Oct 2024 12:20:58 +1100 Subject: [PATCH] Fix types for string.prototype.repeat --- types/string.prototype.repeat/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/string.prototype.repeat/index.d.ts b/types/string.prototype.repeat/index.d.ts index f240d9301f..b2e5992712 100644 --- a/types/string.prototype.repeat/index.d.ts +++ b/types/string.prototype.repeat/index.d.ts @@ -1,3 +1,4 @@ declare module 'string.prototype.repeat' { - export = typeof Function.call.bind(String.prototype.repeat); + function repeat(text: string, count: number): string; + export = repeat; }