String.Format not work in TypeScript. You can declare it yourself quite easily. This is assuming that String.format is defined elsewhere. e.g. in Microsoft Ajax Toolkit.
1 2 3 4 5 |
interface StringConstructor { format: (formatString: string, ...replacement: any[]) => string; } String.format('',''); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.