Skip to content

Replacer<CapturedGroupArguments>

A synchronous function that generates replacement strings, or a string to replace with.

Import:

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

Signature:

export type Replacer<CapturedGroupArguments extends string[]>

Signature:

type Replacer<CapturedGroupArguments> = (($arguments: ReplaceArguments<CapturedGroupArguments>) => StringReplacement) | StringReplacement

Type: (($arguments: ReplaceArguments<CapturedGroupArguments>) => StringReplacement) | StringReplacement


Links to this page: