TextTransformation: {
    flags?: string;
    from: string;
    to: string;
    type: "regex";
} | {
    type: "upper";
} | {
    type: "lower";
}

Type declaration

  • Optional flags?: string

    regex flags; by default, "g" for global match/replace

  • from: string

    regex literal to match

  • to: string

    replacement that can use references to groups defined in to

  • type: "regex"

Type declaration

  • type: "upper"

Type declaration

  • type: "lower"