Skip to content

ReplaceAllAsyncParams<ReplaceGroupArgs>

Parameters for replaceAllAsync.

Import:

import type { ReplaceAllAsyncParams } from 'obsidian-dev-utils/string';

Signature:

export interface ReplaceAllAsyncParams<ReplaceGroupArgs extends string[]>

Properties

PropertyTypeDescription
abortSignal?AbortSignalThe abort signal to control the execution of the function.
replacerAsyncReplacer<ReplaceGroupArgs>A synchronous/asynchronous function that generates replacement strings, or a string to replace with.
searchValueRegExp | stringThe string or regular expression to search for.
strstringThe string in which to perform replacements.

Links to this page: