Type alias FormatStringOptions

FormatStringOptions: {
    fallback?: string;
    fn?: ((str) => string);
    type?: FormatType;
}

Defines the format options for a string.

Type declaration

  • Optional fallback?: string

    A fallback string to use if the input string is null or undefined.

  • Optional fn?: ((str) => string)
      • (str): string
      • A custom function to apply to the string.

        Parameters

        • str: string

        Returns string

  • Optional type?: FormatType

    The format type to apply to the string.

Generated using TypeDoc