UNPKG

@decaf-ts/decorator-validation

Version:
26 lines (25 loc) 921 B
/** * @summary Util function to provide string format functionality similar to C#'s string.format * * @param {string} string * @param {Array<string | number>} [args] replacements made by order of appearance (replacement0 wil replace {0} and so on) * @return {string} formatted string * * @function stringFormat * @memberOf module:decorator-validation * @category Model */ export declare function stringFormat(string: string, ...args: (string | number)[]): string; /** * @summary Util function to provide string format functionality similar to C#'s string.format * @description alias for {@link stringFormat} * * @param {string} string * @param {string} args replacements made by order of appearance (replacement0 wil replace {0} and so on) * @return {string} formatted string * * @function sf * @memberOf module:decorator-validation * @category Model */ export declare const sf: typeof stringFormat;