UNPKG

denoify

Version:

For NPM module authors that would like to support Deno but do not want to write and maintain a port.

3 lines (2 loc) 227 B
/** Equivalent of String.prototype.replace but with async replacer is async */ export declare function replaceAsync(str: string, regex: RegExp, replacerAsync: (str: string, ...args: any[]) => Promise<string>): Promise<string>;