(value: string, ...args: string[])
| 60 | * Tokens such as {0}, {1} will be replaced with corresponding positional arguments. |
| 61 | */ |
| 62 | export function format(value: string, ...args: string[]) { |
| 63 | return value.replace(/{(\d+)}/g, (match, number) => (args[number] === undefined ? match : args[number])); |
| 64 | } |
| 65 | |
| 66 | export function createPublicAPIProxy<T extends object>(target: T, membersToHide: (keyof T)[]): T { |
| 67 | const membersToHideList = membersToHide as (string | symbol)[]; |
no test coverage detected