• Gets a list of placeholders that are included in a string.

    Parameters

    • str: string

      The string to check.

    • Optional options: {
          allPlaceholders?: Placeholder[];
          customPlaceholders?: Placeholder[];
          defaultPlaceholders?: Placeholder[];
      }

      The options for applying placeholders.

      • Optional allPlaceholders?: Placeholder[]

        The list of all placeholders (custom and default). Provide this if you have a single list of all placeholders.

      • Optional customPlaceholders?: Placeholder[]

        The list of custom (user-defined) placeholders. Provide this if you have a separate list of custom placeholders.

      • Optional defaultPlaceholders?: Placeholder[]

        The list of default placeholders. Provide this if you have customized the order of default placeholders or added additional defaults.

    Returns Promise<Placeholder[]>

    The list of Placeholder objects.

    Deprecated

    Use PLChecker.checkForPlaceholders instead.

Generated using TypeDoc